You are reading the Staging documentation. Use the environment link in the top navigation to switch between the production and staging docs sites.
Build against Octospark with the generated SDKs, direct HTTP API, CLI, or MCP surfaces. All developer surfaces use the same public OpenAPI document and the same bearer-token authentication model.

Base URL

SDKs default to production. Pass baseUrl to target a different Octospark API environment.

Authentication

Create an API key in Octospark from Organization settings - API Keys. Use it as a bearer token:
API keys are stored encrypted at rest, looked up by a SHA-256 hash, and displayed only once when created.

First API flow

Start by discovering the organization ID, then discover a team ID, then call a team-scoped operation.
The same flow through the CLI:

TypeScript

Python

Errors