Skip to main content
Platform API Docs

API Quickstart

Make a first sandbox call with a registered client and an approved published operation.

Version Public contract v1 Generated references follow approved public contract hashes Reviewed Jul 26, 2026 Next review Oct 26, 2026

The free Developer workspace is for non-production building and learning under published limits. External API or MCP client credentials use a separate scoped request and approval process.

Owner: Batoi Developer Experience Reviewed by: Batoi Platform Security Source revision: upgrade-jul-26-2026

Browse Batoi Platform API Documentation API Quickstart

API Quickstart

Obtain a sandbox client registration, the approved scope for one public operation, and the one-time credential reveal from the workspace owner or delegated publisher. Store the credential in a secrets manager; the Platform does not reveal it again.

Request

Replace every angle-bracket placeholder. The operation catalog supplies the gateway UID, operation key, method, environment, and request schema.

curl --request POST "https://batoi.com/api/" \
  --header "Content-Type: application/json" \
  --header "Accept: application/json" \
  --header "X-Batoi-Client-Id: <client-id>" \
  --header "Authorization: Bearer <one-time-credential>" \
  --header "X-Request-ID: example-request-001" \
  --data '{
    "contract": "batoi.public-api/1",
    "gateway": "<gateway-uid>",
    "operation": "<published-operation>",
    "environment": "sandbox",
    "method": "GET",
    "request": {}
  }'

Successful response

A successful response includes the active contract version and hash plus a correlation identifier. Retain the correlation identifier when asking for support.

{
  "success": true,
  "contract": "batoi.public-api/1",
  "gateway": "<gateway-uid>",
  "operation": "<published-operation>",
  "contract_version": "<version>",
  "contract_hash": "<sha256>",
  "correlation_id": "<request-id>",
  "data": {}
}

Next

  • Confirm the response contract hash matches the active published reference.
  • Exercise only sandbox until production promotion is approved.
  • Rotate or revoke the binding immediately if the credential may have been exposed.