For the complete documentation index, see llms.txt. This page is also available as Markdown.

Seller

Add an overview of the Seller API here. This block is preserved across regenerations.

Endpoints

GET /api/v1/seller/sessions

List sell sessions for the tenant

get
/seller/sessions
Authorizations
X-API-KeystringRequired

Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.

Responses
200

List of sell sessions

get/seller/sessions
GET /api/v1/seller/sessions HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Accept: */*

No content

Notes, examples, or caveats for GET /seller/sessions go here.

POST /api/v1/seller/sessions

Open a sell session for a buyer agent

post
/seller/sessions
Authorizations
X-API-KeystringRequired

Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.

Body
counterpartystringOptional

Label for the buyer agent's principal (audit)

sessionKeystringOptional
titlestringOptional
Responses
201

Sell session created

No content

post/seller/sessions
POST /api/v1/seller/sessions HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "counterparty": "text",
  "sessionKey": "text",
  "title": "text"
}

No content

Notes, examples, or caveats for POST /seller/sessions go here.

GET /api/v1/seller/sessions/{id}/messages

Replay a sell session's turns

get
/seller/sessions/{id}/messages
Authorizations
X-API-KeystringRequired

Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.

Path parameters
idstringRequired

Sell session UUID

Responses
200

Ordered list of buyer and seller turns

No content

get/seller/sessions/{id}/messages
GET /api/v1/seller/sessions/{id}/messages HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Accept: */*

No content

Notes, examples, or caveats for GET /seller/sessions/{id}/messages go here.

POST /api/v1/seller/sessions/{id}/messages

Send a buyer message and run one seller turn

post
/seller/sessions/{id}/messages
Authorizations
X-API-KeystringRequired

Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.

Path parameters
idstringRequired

Sell session UUID

Body
messagestringRequired

The buyer agent's message

merchantNamestringOptional
catalogSummarystringOptional
requiredToClosestringOptional
allowCommitbooleanOptional

When false, the seller quotes/builds but does not commit

Responses
200

Seller reply with executed tool calls and token usage

No content

post/seller/sessions/{id}/messages
POST /api/v1/seller/sessions/{id}/messages HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 108

{
  "message": "text",
  "merchantName": "text",
  "catalogSummary": "text",
  "requiredToClose": "text",
  "allowCommit": true
}

No content

Notes, examples, or caveats for POST /seller/sessions/{id}/messages go here.

Last updated

Was this helpful?