Documentation

API reference

Crawlable documentation for developers and agencies integrating VoxCartAI programmatically - authentication, endpoints, rate limits, and example requests.

Most WooCommerce merchants should use the official plugin instead of a custom client. Use this API when you need programmatic control beyond the plugin. Endpoint details below are draft placeholders until the product API pack is published - contact us for early partner access.

Key-based auth

Dashboard credentials

REST endpoints

Sessions & commerce

Rate limits

Fair-use quotas

Examples

Request / response

Authentication

Authenticate server-to-server with credentials from your VoxCartAI dashboard. Never ship raw API keys in public front-end bundles or theme files. See how API keys are handled.

# PLACEHOLDER - base URL and headers pending product confirmation
Base URL: https://api.example.voxcartai.com/v1

Authorization: Bearer <API_KEY>
X-VoxCart-Agent-Id: <AGENT_ID>
  • Where to put the key - Backend services, workers, and official plugins only.
  • Transport - HTTPS only. Prefer short-lived request contexts over embedding long-lived keys in browsers.
  • Rotation - Rotate from the dashboard if a secret may have leaked, then update every consumer.

Need credentials? Create an account.

Endpoints

Illustrative resource groups for custom clients. Paths and payloads below are placeholders pending the published OpenAPI / partner pack.

MethodPathPurpose
POST/v1/sessionsStart a voice session (placeholder)
GET/v1/sessions/:idFetch session status (placeholder)
POST/v1/sessions/:id/turnsSend a conversation turn (placeholder)
POST/v1/commerce/contextAttach cart / order context (placeholder)
DELETE/v1/sessions/:idClose a session (placeholder)

Session retention and recordings: voice recordings. Customer data principles: customer data.

Rate limits

Clients should treat limits as fair-use guardrails and back off on HTTP 429. Exact quotas and response headers are placeholders until product publishes production numbers.

  • Default window - e.g. N requests per minute per API key (TBD).
  • Burst - Short bursts may be allowed; do not hammer session-start endpoints.
  • Headers (illustrative) - X-RateLimit-Limit, X-RateLimit-Remaining, Retry-After.
  • On 429 - Exponential backoff with jitter; surface a human handoff for shopper-facing flows if retries fail.

Example requests & responses

Sample shapes only - replace with product-approved examples before treating as contractual API behavior.

Start a session (placeholder)

POST /v1/sessions
Authorization: Bearer <API_KEY>
X-VoxCart-Agent-Id: <AGENT_ID>
Content-Type: application/json

{
  "channel": "widget",
  "storefrontUrl": "https://example-store.com/product/sku-123",
  "customerId": "store-customer-42"
}

Success response (placeholder)

HTTP/1.1 201 Created
Content-Type: application/json

{
  "id": "sess_placeholder_01",
  "status": "active",
  "agentId": "<AGENT_ID>",
  "createdAt": "2026-06-01T12:00:00Z"
}

Error response (placeholder)

HTTP/1.1 401 Unauthorized
Content-Type: application/json

{
  "error": {
    "code": "unauthorized",
    "message": "Invalid or revoked API key",
    "requestId": "req_placeholder_01"
  }
}

New to the product? Start with getting started.

Related docs