English source · 7 min
Protocols API reference
MCP, UCP and the shared capability dispatch; adapters without business rules. Contract version 1.0.0, generated from contracts/http/protocols.openapi.json. 13 HTTP operations, 2 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 protocols API object, method names and argument order are those of the generated SDKs.
Operations
| Operation | Permission | In the docs |
|---|---|---|
GET /.well-known/ucp |
public | Try it |
GET /api/capabilities |
public | request |
GET /mcp |
public | request |
POST /mcp |
public | request |
GET /ucp/2026-10-13/b2b-negotiation.json |
public | request |
POST /ucp/v1/carts |
public | request |
POST /ucp/v1/checkout-sessions |
public | request |
GET /ucp/v1/checkout-sessions/{id} |
public | request |
PUT /ucp/v1/checkout-sessions/{id} |
public | request |
POST /ucp/v1/checkout-sessions/{id}/b2b/{operation} |
public | request |
POST /ucp/v1/checkout-sessions/{id}/cancel |
public | request |
POST /ucp/v1/checkout-sessions/{id}/complete |
public | request |
GET /ucp/v1/products/{id}/facts |
public | request |
MCP merchant.operations.check |
merchant | request |
MCP merchant.operations.list |
merchant | request |
Public HTTP
Anonymous storefront, discovery and protocol routes. Name the shop with x-tenant.
GET /.well-known/ucp
Permission: public, no credential. Source: src/ucp/mod.rs. SDK method: getWellKnownUcp.
curl
curl -fsS -X GET "$VEYNDO_URL/.well-known/ucp" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.protocols.getWellKnownUcp();
Python
result = client.protocols.get_well_known_ucp()
Rust
let result = client.protocols().get_well_known_ucp(RequestOptions::default()).await?;
GET /api/capabilities
Permission: public, no credential. Source: src/routes.rs. SDK method: getCapabilities.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/api/capabilities" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.protocols.getCapabilities();
Python
result = client.protocols.get_capabilities()
Rust
let result = client.protocols().get_capabilities(RequestOptions::default()).await?;
GET /mcp
Permission: public, no credential. Source: src/routes.rs. SDK method: getMcp.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/mcp" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.protocols.getMcp();
Python
result = client.protocols.get_mcp()
Rust
let result = client.protocols().get_mcp(RequestOptions::default()).await?;
POST /mcp
Permission: public, no credential. Source: src/routes.rs. SDK method: postMcp.
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 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.protocols.postMcp({ body: {} });
Python
result = client.protocols.post_mcp(body={})
Rust
let result = client.protocols().post_mcp(RequestOptions::json(json!({}))).await?;
GET /ucp/2026-10-13/b2b-negotiation.json
Permission: public, no credential. Source: src/ucp/mod.rs. SDK method: getUcp20261013B2bNegotiationJson.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/ucp/2026-10-13/b2b-negotiation.json" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.protocols.getUcp20261013B2bNegotiationJson();
Python
result = client.protocols.get_ucp20261013_b2b_negotiation_json()
Rust
let result = client.protocols().get_ucp20261013_b2b_negotiation_json(RequestOptions::default()).await?;
POST /ucp/v1/carts
Permission: public, no credential. Source: src/ucp/mod.rs. SDK method: postUcpV1Carts.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/ucp/v1/carts" \
-H "x-tenant: $VEYNDO_SHOP" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.protocols.postUcpV1Carts({ body: {} });
Python
result = client.protocols.post_ucp_v1_carts(body={})
Rust
let result = client.protocols().post_ucp_v1_carts(RequestOptions::json(json!({}))).await?;
POST /ucp/v1/checkout-sessions
Permission: public, no credential. Source: src/ucp/mod.rs. SDK method: postUcpV1CheckoutSessions.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/ucp/v1/checkout-sessions" \
-H "x-tenant: $VEYNDO_SHOP" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.protocols.postUcpV1CheckoutSessions({ body: {} });
Python
result = client.protocols.post_ucp_v1_checkout_sessions(body={})
Rust
let result = client.protocols().post_ucp_v1_checkout_sessions(RequestOptions::json(json!({}))).await?;
GET /ucp/v1/checkout-sessions/{id}
Permission: public, no credential. Source: src/ucp/mod.rs. SDK method: getUcpV1CheckoutSessionsById.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/ucp/v1/checkout-sessions/<id>" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.protocols.getUcpV1CheckoutSessionsById({ "id": "<id>" });
Python
result = client.protocols.get_ucp_v1_checkout_sessions_by_id("<id>")
Rust
let result = client.protocols().get_ucp_v1_checkout_sessions_by_id("<id>", RequestOptions::default()).await?;
PUT /ucp/v1/checkout-sessions/{id}
Permission: public, no credential. Source: src/ucp/mod.rs. SDK method: putUcpV1CheckoutSessionsById.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X PUT "$VEYNDO_URL/ucp/v1/checkout-sessions/<id>" \
-H "x-tenant: $VEYNDO_SHOP" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.protocols.putUcpV1CheckoutSessionsById({ "id": "<id>" }, { body: {} });
Python
result = client.protocols.put_ucp_v1_checkout_sessions_by_id("<id>", body={})
Rust
let result = client.protocols().put_ucp_v1_checkout_sessions_by_id("<id>", RequestOptions::json(json!({}))).await?;
POST /ucp/v1/checkout-sessions/{id}/b2b/{operation}
Permission: public, no credential. Source: src/ucp/mod.rs. SDK method: postUcpV1CheckoutSessionsByIdB2bByOperation.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/ucp/v1/checkout-sessions/<id>/b2b/<operation>" \
-H "x-tenant: $VEYNDO_SHOP" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.protocols.postUcpV1CheckoutSessionsByIdB2bByOperation({ "id": "<id>", "operation": "<operation>" }, { body: {} });
Python
result = client.protocols.post_ucp_v1_checkout_sessions_by_id_b2b_by_operation("<id>", "<operation>", body={})
Rust
let result = client.protocols().post_ucp_v1_checkout_sessions_by_id_b2b_by_operation("<id>", "<operation>", RequestOptions::json(json!({}))).await?;
POST /ucp/v1/checkout-sessions/{id}/cancel
Permission: public, no credential. Source: src/ucp/mod.rs. SDK method: postUcpV1CheckoutSessionsByIdCancel.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/ucp/v1/checkout-sessions/<id>/cancel" \
-H "x-tenant: $VEYNDO_SHOP" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.protocols.postUcpV1CheckoutSessionsByIdCancel({ "id": "<id>" }, { body: {} });
Python
result = client.protocols.post_ucp_v1_checkout_sessions_by_id_cancel("<id>", body={})
Rust
let result = client.protocols().post_ucp_v1_checkout_sessions_by_id_cancel("<id>", RequestOptions::json(json!({}))).await?;
POST /ucp/v1/checkout-sessions/{id}/complete
Permission: public, no credential. Source: src/ucp/mod.rs. SDK method: postUcpV1CheckoutSessionsByIdComplete.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/ucp/v1/checkout-sessions/<id>/complete" \
-H "x-tenant: $VEYNDO_SHOP" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.protocols.postUcpV1CheckoutSessionsByIdComplete({ "id": "<id>" }, { body: {} });
Python
result = client.protocols.post_ucp_v1_checkout_sessions_by_id_complete("<id>", body={})
Rust
let result = client.protocols().post_ucp_v1_checkout_sessions_by_id_complete("<id>", RequestOptions::json(json!({}))).await?;
GET /ucp/v1/products/{id}/facts
Permission: public, no credential. Source: src/cognition/signed.rs. SDK method: getUcpV1ProductsByIdFacts.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/ucp/v1/products/<id>/facts" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.protocols.getUcpV1ProductsByIdFacts({ "id": "<id>" });
Python
result = client.protocols.get_ucp_v1_products_by_id_facts("<id>")
Rust
let result = client.protocols().get_ucp_v1_products_by_id_facts("<id>", RequestOptions::default()).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.
merchant.operations.check
Check a planned sequence of operation calls before execution: admission, arguments, prerequisites and required approvals; runs nothing.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | none |
| Effects | none |
| Conditions | none |
| Data | operation |
| Requires | merchant.operations.list |
| Argument | Type | Required |
|---|---|---|
steps |
array of object | yes |
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": "merchant.operations.check", "arguments": {"steps": []}}}'
TypeScript
const result = await client.mcp.call("merchant.operations.check", {"steps": []});
Python
result = client.mcp.call("merchant.operations.check", {"steps": []})
Rust
let result = client.mcp().call_raw("merchant.operations.check", json!({"steps": []})).await?;
merchant.operations.list
List the operations you may call now with typed permission, cost, reversibility, risk, data, side effects and preconditions.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | none |
| Effects | none |
| Conditions | none |
| Data | operation |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
includeUnavailable |
boolean | no |
names |
array of string (max length 120) | 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": "merchant.operations.list", "arguments": {}}}'
TypeScript
const result = await client.mcp.call("merchant.operations.list", {});
Python
result = client.mcp.call("merchant.operations.list", {})
Rust
let result = client.mcp().call_raw("merchant.operations.list", json!({})).await?;