callbotagent.aiDocs
v1 · Contract draft
ENPL
Open dashboard
Preview

Capabilities

Preview documentation / simulated contract (draft). Schemas and examples reflect the planned Commerce API v1 — final values will be confirmed when the production contract is frozen.

GET /capabilities

Description

Contract version, limits, supported order kinds, events, and feature flags. Base URL: https://api.callbotagent.ai/api/v1/commerce.

Required scope

commerce:read

Headers

Header Value Required
Content-Type application/json (gdy body) when body present
X-CBA-Key-Id key identifier (in examples: cba_test_••••••••) yes
X-CBA-Timestamp RFC 3339 UTC yes
X-CBA-Nonce unique nonce within the 300 s window yes
X-CBA-Content-SHA256 SHA-256 hex surowego body (e3b0c44… dla pustego) yes
X-CBA-Signature hmac-sha256=<hex> yes
Idempotency-Key idempotency key mutations: yes

Example request

curl -X GET https://api.callbotagent.ai/api/v1/commerce/capabilities \
  -H "X-CBA-Key-Id: cba_test_••••••••" \
  -H "X-CBA-Timestamp: 2026-07-11T10:00:00Z" \
  -H "X-CBA-Nonce: n_8f3a2c1b" \
  -H "X-CBA-Content-SHA256: <sha256-body>" \
  -H "X-CBA-Signature: hmac-sha256=<hex>"

Example response

{
  "contract_version": "2026.07.11-draft.1",
  "base_path": "/api/v1/commerce",
  "order_kinds": [
    "standard",
    "repurchase_intent"
  ],
  "events": [
    "commerce.order.status_changed.v1",
    "commerce.call.attempt_completed.v1",
    "commerce.order.result_ready.v1",
    "commerce.writeback.failed.v1"
  ],
  "limits": {
    "products_batch_max": 500,
    "variants_per_product_max": 100,
    "page_limit_default": 50,
    "page_limit_max": 200
  },
  "features": {
    "webhooks": true,
    "repurchase_intents": true,
    "writeback": "partner_dependent"
  }
}

Possible errors

Status code Meaning
401 invalid_signature / expired_timestamp / replay_nonce HMAC / replay window
403 insufficient_scope missing required scope
404 resource_not_found resource unavailable for principal
409 idempotency_key_reused / stale_source_version idempotency / version conflict
422 validation_failed body does not match schema / invariants
429 rate_limited limits — see Retry-After

Related