Skip to main content
Use these snippets as building blocks for public API v1 clients. They keep the base URL, authentication header, idempotency behavior, and response envelope consistent across guides.

Environment

Send API keys from a server-side environment. Use x-api-key as the canonical auth header:
Bearer transport is accepted for compatibility with older clients:

JSON request body

Idempotent write

Some write endpoints require Idempotency-Key; check the endpoint reference before sending a write request. Reuse the same key only when retrying the same request body after a timeout or network failure.

Read an object response

Object responses return the resource under data:

Read a list response

Search and list responses return items under data.items. List endpoints that support cursor pagination also return data.page_info; check the endpoint reference before reading cursor fields.

Error envelope

Most public v1 errors use a structured error object:
Compatibility endpoints can still return older error shapes. Check the endpoint reference when you handle errors for a specific route.

Preview endpoints

Preview endpoint shapes are generated from the same OpenAPI source as stable routes, but they are not yet part of the stable public API v1 surface. Keep preview integrations behind a narrow rollout and read each endpoint’s response schemas from the generated reference.