VEYNDO
Handbook
docs/reference/identity.mdView source ↗

English source · 16 min

Identity API reference

Merchant accounts, memberships, sessions, roles and route policy. Contract version 1.0.0, generated from contracts/http/identity.openapi.json. 35 HTTP operations, 4 MCP tools. All components · Build your first app.

Set up a client

Every example below uses these three values. VEYNDO_TOKEN is needed only for merchant operations; keep it on your server.

export VEYNDO_URL=https://api.veyndo.ai
export VEYNDO_SHOP=<your-shop-id>
export VEYNDO_TOKEN=<personal-session-or-integration-key>

curl

curl -fsS "$VEYNDO_URL/health"

TypeScript

import { Auth, VeyndoClient } from "@veyndo/commerce-client";

const client = new VeyndoClient({
  baseUrl: process.env.VEYNDO_URL!,
  tenant: process.env.VEYNDO_SHOP,
  auth: process.env.VEYNDO_TOKEN ? Auth.personalSession(process.env.VEYNDO_TOKEN) : undefined,
});

Python

import os
from veyndo_sdk import Auth, VeyndoClient

token = os.environ.get("VEYNDO_TOKEN")
client = VeyndoClient(os.environ["VEYNDO_URL"], tenant=os.environ["VEYNDO_SHOP"],
                      auth=Auth.personal_session(token) if token else None)

Rust

use serde_json::json;
use veyndo_sdk::{Auth, Client, ClientOptions, RequestOptions};

let client = Client::new(ClientOptions {
    base_url: std::env::var("VEYNDO_URL")?,
    tenant: std::env::var("VEYNDO_SHOP").ok(),
    auth: std::env::var("VEYNDO_TOKEN").ok().map(Auth::PersonalSession),
    ..ClientOptions::default()
});

The identity API object, method names and argument order are those of the generated SDKs.

Operations

Operation Permission In the docs
POST /api/auth/accept public request
POST /api/auth/login public request
POST /api/auth/mfa/verify public request
GET /api/auth/recovery public request
POST /api/auth/redeem public request
POST /api/auth/register public request
POST /api/identity/checkout/introspect public request
POST /api/identity/credentials public request
POST /api/identity/exchange public request
POST /api/identity/inference public request
POST /api/identity/knowledge/introspect public request
POST /api/identity/recovery public request
POST /api/identity/session public request
GET /api/auth/access read request
POST /api/auth/handoff read request
POST /api/auth/logout read request
GET /api/auth/mfa read request
POST /api/auth/mfa/confirm read request
POST /api/auth/mfa/disable read request
POST /api/auth/mfa/enroll read request
GET /api/auth/session read request
GET /api/auth/sessions read request
DELETE /api/auth/sessions/{id} read request
GET /api/workspace/integrations team.manage request
POST /api/workspace/integrations team.manage request
DELETE /api/workspace/integrations/{id} team.manage request
POST /api/workspace/invitations team.manage request
DELETE /api/workspace/invitations/{id} team.manage request
GET /api/workspace/members team.manage request
PUT /api/workspace/members/{id} team.manage request
GET /api/workspace/roles team.manage request
DELETE /api/workspace/roles/{id} team.manage request
PUT /api/workspace/roles/{id} team.manage request
GET /api/workspace/roles/{id}/dependencies team.manage request
POST /api/workspaces read request
MCP team.role.delete team.manage request
MCP team.role.dependencies team.manage request
MCP team.role.save team.manage request
MCP team.roles team.manage request

Public HTTP

Anonymous storefront, discovery and protocol routes. Name the shop with x-tenant.

POST /api/auth/accept

Permission: public, no credential. Source: src/routes.rs. SDK method: postAuthAccept.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/auth/accept" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postAuthAccept({ body: {} });

Python

result = client.identity.post_auth_accept(body={})

Rust

let result = client.identity().post_auth_accept(RequestOptions::json(json!({}))).await?;

POST /api/auth/login

Permission: public, no credential. Source: src/routes.rs. SDK method: postAuthLogin.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/auth/login" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postAuthLogin({ body: {} });

Python

result = client.identity.post_auth_login(body={})

Rust

let result = client.identity().post_auth_login(RequestOptions::json(json!({}))).await?;

POST /api/auth/mfa/verify

Permission: public, no credential. Source: src/auth/mfa.rs. SDK method: postAuthMfaVerify.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/auth/mfa/verify" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postAuthMfaVerify({ body: {} });

Python

result = client.identity.post_auth_mfa_verify(body={})

Rust

let result = client.identity().post_auth_mfa_verify(RequestOptions::json(json!({}))).await?;

GET /api/auth/recovery

Permission: public, no credential. Source: src/auth/routes.rs. SDK method: getAuthRecovery.

Needs a cart, buyer or object token: run the example against your own shop.

curl

curl -fsS -X GET "$VEYNDO_URL/api/auth/recovery" \
  -H "x-tenant: $VEYNDO_SHOP"

TypeScript

const result = await client.identity.getAuthRecovery();

Python

result = client.identity.get_auth_recovery()

Rust

let result = client.identity().get_auth_recovery(RequestOptions::default()).await?;

POST /api/auth/redeem

Permission: public, no credential. Source: src/auth/routes.rs. SDK method: postAuthRedeem.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/auth/redeem" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postAuthRedeem({ body: {} });

Python

result = client.identity.post_auth_redeem(body={})

Rust

let result = client.identity().post_auth_redeem(RequestOptions::json(json!({}))).await?;

POST /api/auth/register

Permission: public, no credential. Source: src/routes.rs. SDK method: postAuthRegister.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/auth/register" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postAuthRegister({ body: {} });

Python

result = client.identity.post_auth_register(body={})

Rust

let result = client.identity().post_auth_register(RequestOptions::json(json!({}))).await?;

POST /api/identity/checkout/introspect

Permission: public, no credential. Source: src/checkout/mod.rs. SDK method: postIdentityCheckoutIntrospect.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/identity/checkout/introspect" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postIdentityCheckoutIntrospect({ body: {} });

Python

result = client.identity.post_identity_checkout_introspect(body={})

Rust

let result = client.identity().post_identity_checkout_introspect(RequestOptions::json(json!({}))).await?;

POST /api/identity/credentials

Permission: public, no credential. Source: src/auth/routes.rs. SDK method: postIdentityCredentials.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/identity/credentials" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postIdentityCredentials({ body: {} });

Python

result = client.identity.post_identity_credentials(body={})

Rust

let result = client.identity().post_identity_credentials(RequestOptions::json(json!({}))).await?;

POST /api/identity/exchange

Permission: public, no credential. Source: src/auth/routes.rs. SDK method: postIdentityExchange.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/identity/exchange" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postIdentityExchange({ body: {} });

Python

result = client.identity.post_identity_exchange(body={})

Rust

let result = client.identity().post_identity_exchange(RequestOptions::json(json!({}))).await?;

POST /api/identity/inference

Permission: public, no credential. Source: src/auth/routes.rs. SDK method: postIdentityInference.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/identity/inference" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postIdentityInference({ body: {} });

Python

result = client.identity.post_identity_inference(body={})

Rust

let result = client.identity().post_identity_inference(RequestOptions::json(json!({}))).await?;

POST /api/identity/knowledge/introspect

Permission: public, no credential. Source: src/auth/routes.rs. SDK method: postIdentityKnowledgeIntrospect.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/identity/knowledge/introspect" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postIdentityKnowledgeIntrospect({ body: {} });

Python

result = client.identity.post_identity_knowledge_introspect(body={})

Rust

let result = client.identity().post_identity_knowledge_introspect(RequestOptions::json(json!({}))).await?;

POST /api/identity/recovery

Permission: public, no credential. Source: src/auth/routes.rs. SDK method: postIdentityRecovery.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/identity/recovery" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postIdentityRecovery({ body: {} });

Python

result = client.identity.post_identity_recovery(body={})

Rust

let result = client.identity().post_identity_recovery(RequestOptions::json(json!({}))).await?;

POST /api/identity/session

Permission: public, no credential. Source: src/auth/routes.rs. SDK method: postIdentitySession.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/identity/session" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postIdentitySession({ body: {} });

Python

result = client.identity.post_identity_session(body={})

Rust

let result = client.identity().post_identity_session(RequestOptions::json(json!({}))).await?;

Merchant HTTP

Each route checks the named permission against your current membership.

GET /api/auth/access

Permission: read, personal session or integration key. Source: src/routes.rs. SDK method: getAuthAccess.

Needs a merchant credential. Run it against your own private sandbox.

curl

curl -fsS -X GET "$VEYNDO_URL/api/auth/access" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.getAuthAccess();

Python

result = client.identity.get_auth_access()

Rust

let result = client.identity().get_auth_access(RequestOptions::default()).await?;

POST /api/auth/handoff

Permission: read, personal session or integration key. Source: src/auth/routes.rs. SDK method: postAuthHandoff.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/auth/handoff" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postAuthHandoff({ body: {} });

Python

result = client.identity.post_auth_handoff(body={})

Rust

let result = client.identity().post_auth_handoff(RequestOptions::json(json!({}))).await?;

POST /api/auth/logout

Permission: read, personal session or integration key. Source: src/routes.rs. SDK method: postAuthLogout.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/auth/logout" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postAuthLogout({ body: {} });

Python

result = client.identity.post_auth_logout(body={})

Rust

let result = client.identity().post_auth_logout(RequestOptions::json(json!({}))).await?;

GET /api/auth/mfa

Permission: read, personal session or integration key. Source: src/auth/mfa.rs. SDK method: getAuthMfa.

Needs a merchant credential. Run it against your own private sandbox.

curl

curl -fsS -X GET "$VEYNDO_URL/api/auth/mfa" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.getAuthMfa();

Python

result = client.identity.get_auth_mfa()

Rust

let result = client.identity().get_auth_mfa(RequestOptions::default()).await?;

POST /api/auth/mfa/confirm

Permission: read, personal session or integration key. Source: src/auth/mfa.rs. SDK method: postAuthMfaConfirm.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/auth/mfa/confirm" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postAuthMfaConfirm({ body: {} });

Python

result = client.identity.post_auth_mfa_confirm(body={})

Rust

let result = client.identity().post_auth_mfa_confirm(RequestOptions::json(json!({}))).await?;

POST /api/auth/mfa/disable

Permission: read, personal session or integration key. Source: src/auth/mfa.rs. SDK method: postAuthMfaDisable.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/auth/mfa/disable" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postAuthMfaDisable({ body: {} });

Python

result = client.identity.post_auth_mfa_disable(body={})

Rust

let result = client.identity().post_auth_mfa_disable(RequestOptions::json(json!({}))).await?;

POST /api/auth/mfa/enroll

Permission: read, personal session or integration key. Source: src/auth/mfa.rs. SDK method: postAuthMfaEnroll.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/auth/mfa/enroll" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postAuthMfaEnroll({ body: {} });

Python

result = client.identity.post_auth_mfa_enroll(body={})

Rust

let result = client.identity().post_auth_mfa_enroll(RequestOptions::json(json!({}))).await?;

GET /api/auth/session

Permission: read, personal session or integration key. Source: src/routes.rs. SDK method: getAuthSession.

Needs a merchant credential. Run it against your own private sandbox.

curl

curl -fsS -X GET "$VEYNDO_URL/api/auth/session" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.getAuthSession();

Python

result = client.identity.get_auth_session()

Rust

let result = client.identity().get_auth_session(RequestOptions::default()).await?;

GET /api/auth/sessions

Permission: read, personal session or integration key. Source: src/routes.rs. SDK method: getAuthSessions.

Needs a merchant credential. Run it against your own private sandbox.

curl

curl -fsS -X GET "$VEYNDO_URL/api/auth/sessions" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.getAuthSessions();

Python

result = client.identity.get_auth_sessions()

Rust

let result = client.identity().get_auth_sessions(RequestOptions::default()).await?;

DELETE /api/auth/sessions/{id}

Permission: read, personal session or integration key. Source: src/routes.rs. SDK method: deleteAuthSessionsById.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X DELETE "$VEYNDO_URL/api/auth/sessions/<id>" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.deleteAuthSessionsById({ "id": "<id>" });

Python

result = client.identity.delete_auth_sessions_by_id("<id>")

Rust

let result = client.identity().delete_auth_sessions_by_id("<id>", RequestOptions::default()).await?;

GET /api/workspace/integrations

Permission: team.manage, personal session or integration key. Source: src/routes.rs. SDK method: getWorkspaceIntegrations.

Needs a merchant credential. Run it against your own private sandbox.

curl

curl -fsS -X GET "$VEYNDO_URL/api/workspace/integrations" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.getWorkspaceIntegrations();

Python

result = client.identity.get_workspace_integrations()

Rust

let result = client.identity().get_workspace_integrations(RequestOptions::default()).await?;

POST /api/workspace/integrations

Permission: team.manage, personal session or integration key. Source: src/routes.rs. SDK method: postWorkspaceIntegrations.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/workspace/integrations" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postWorkspaceIntegrations({ body: {} });

Python

result = client.identity.post_workspace_integrations(body={})

Rust

let result = client.identity().post_workspace_integrations(RequestOptions::json(json!({}))).await?;

DELETE /api/workspace/integrations/{id}

Permission: team.manage, personal session or integration key. Source: src/routes.rs. SDK method: deleteWorkspaceIntegrationsById.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X DELETE "$VEYNDO_URL/api/workspace/integrations/<id>" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.deleteWorkspaceIntegrationsById({ "id": "<id>" });

Python

result = client.identity.delete_workspace_integrations_by_id("<id>")

Rust

let result = client.identity().delete_workspace_integrations_by_id("<id>", RequestOptions::default()).await?;

POST /api/workspace/invitations

Permission: team.manage, personal session or integration key. Source: src/routes.rs. SDK method: postWorkspaceInvitations.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/workspace/invitations" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postWorkspaceInvitations({ body: {} });

Python

result = client.identity.post_workspace_invitations(body={})

Rust

let result = client.identity().post_workspace_invitations(RequestOptions::json(json!({}))).await?;

DELETE /api/workspace/invitations/{id}

Permission: team.manage, personal session or integration key. Source: src/routes.rs. SDK method: deleteWorkspaceInvitationsById.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X DELETE "$VEYNDO_URL/api/workspace/invitations/<id>" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.deleteWorkspaceInvitationsById({ "id": "<id>" });

Python

result = client.identity.delete_workspace_invitations_by_id("<id>")

Rust

let result = client.identity().delete_workspace_invitations_by_id("<id>", RequestOptions::default()).await?;

GET /api/workspace/members

Permission: team.manage, personal session or integration key. Source: src/routes.rs. SDK method: getWorkspaceMembers.

Needs a merchant credential. Run it against your own private sandbox.

curl

curl -fsS -X GET "$VEYNDO_URL/api/workspace/members" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.getWorkspaceMembers();

Python

result = client.identity.get_workspace_members()

Rust

let result = client.identity().get_workspace_members(RequestOptions::default()).await?;

PUT /api/workspace/members/{id}

Permission: team.manage, personal session or integration key. Source: src/routes.rs. SDK method: putWorkspaceMembersById.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X PUT "$VEYNDO_URL/api/workspace/members/<id>" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.putWorkspaceMembersById({ "id": "<id>" }, { body: {} });

Python

result = client.identity.put_workspace_members_by_id("<id>", body={})

Rust

let result = client.identity().put_workspace_members_by_id("<id>", RequestOptions::json(json!({}))).await?;

GET /api/workspace/roles

Permission: team.manage, personal session or integration key. Source: src/auth/roles.rs. SDK method: getWorkspaceRoles.

Needs a merchant credential. Run it against your own private sandbox.

curl

curl -fsS -X GET "$VEYNDO_URL/api/workspace/roles" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.getWorkspaceRoles();

Python

result = client.identity.get_workspace_roles()

Rust

let result = client.identity().get_workspace_roles(RequestOptions::default()).await?;

DELETE /api/workspace/roles/{id}

Permission: team.manage, personal session or integration key. Source: src/auth/roles.rs. SDK method: deleteWorkspaceRolesById.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X DELETE "$VEYNDO_URL/api/workspace/roles/<id>" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.deleteWorkspaceRolesById({ "id": "<id>" });

Python

result = client.identity.delete_workspace_roles_by_id("<id>")

Rust

let result = client.identity().delete_workspace_roles_by_id("<id>", RequestOptions::default()).await?;

PUT /api/workspace/roles/{id}

Permission: team.manage, personal session or integration key. Source: src/auth/roles.rs. SDK method: putWorkspaceRolesById.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X PUT "$VEYNDO_URL/api/workspace/roles/<id>" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.putWorkspaceRolesById({ "id": "<id>" }, { body: {} });

Python

result = client.identity.put_workspace_roles_by_id("<id>", body={})

Rust

let result = client.identity().put_workspace_roles_by_id("<id>", RequestOptions::json(json!({}))).await?;

GET /api/workspace/roles/{id}/dependencies

Permission: team.manage, personal session or integration key. Source: src/auth/roles.rs. SDK method: getWorkspaceRolesByIdDependencies.

Needs a merchant credential. Run it against your own private sandbox.

curl

curl -fsS -X GET "$VEYNDO_URL/api/workspace/roles/<id>/dependencies" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.identity.getWorkspaceRolesByIdDependencies({ "id": "<id>" });

Python

result = client.identity.get_workspace_roles_by_id_dependencies("<id>")

Rust

let result = client.identity().get_workspace_roles_by_id_dependencies("<id>", RequestOptions::default()).await?;

POST /api/workspaces

Permission: read, personal session or integration key. Source: src/routes.rs. SDK method: postWorkspaces.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/api/workspaces" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.identity.postWorkspaces({ body: {} });

Python

result = client.identity.post_workspaces(body={})

Rust

let result = client.identity().post_workspaces(RequestOptions::json(json!({}))).await?;

MCP tools

Called with JSON-RPC tools/call on POST /mcp. The facts come from the typed operations graph; the server validates the input schema before it runs a tool.

team.role.delete

Remove an unused custom role.

Fact Value
Audience merchant
Writes yes
Risk high
Reversibility irreversible
Requires approval yes
Cost standard
Permissions team.manage
Effects none
Conditions none
Data role
Requires team.role.dependencies
Argument Type Required
approve boolean no
data object no
id string (max length 32) no
revision integer (≥ 0) no

A write. Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "team.role.delete", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("team.role.delete", {});

Python

result = client.mcp.call("team.role.delete", {})

Rust

let result = client.mcp().call_raw("team.role.delete", json!({})).await?;

team.role.dependencies

Inspect role dependencies.

Fact Value
Audience merchant
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions team.manage
Effects none
Conditions none
Data role
Requires none
Argument Type Required
approve boolean no
data object no
id string (max length 32) no
revision integer (≥ 0) no

Needs a merchant credential. Run it against your own private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "team.role.dependencies", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("team.role.dependencies", {});

Python

result = client.mcp.call("team.role.dependencies", {})

Rust

let result = client.mcp().call_raw("team.role.dependencies", json!({})).await?;

team.role.save

Revise tenant role grants.

Fact Value
Audience merchant
Writes yes
Risk high
Reversibility reversible
Requires approval yes
Cost standard
Permissions team.manage
Effects none
Conditions none
Data role
Requires none
Argument Type Required
approve boolean no
data object no
id string (max length 32) no
revision integer (≥ 0) no

A write. Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "team.role.save", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("team.role.save", {});

Python

result = client.mcp.call("team.role.save", {})

Rust

let result = client.mcp().call_raw("team.role.save", json!({})).await?;

team.roles

Read current tenant role definitions.

Fact Value
Audience merchant
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions team.manage
Effects none
Conditions none
Data role
Requires none
Argument Type Required
approve boolean no
data object no
id string (max length 32) no
revision integer (≥ 0) no

Needs a merchant credential. Run it against your own private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "team.roles", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("team.roles", {});

Python

result = client.mcp.call("team.roles", {})

Rust

let result = client.mcp().call_raw("team.roles", json!({})).await?;