Skip to main content
The Code Storage HTTP API mirrors the SDK’s primitives over plain HTTPS, so any runtime can mint JWT-backed remotes, paginate branches and commits, stream diffs, or create new commits without a local git client.

Base config

Every client starts by configuring the base API URL and a signed JWT.
With that reference info defined, export the concrete values for your workspace or CI runner:
Then talk to any endpoint with a single cURL:

Pagination

The API uses cursor-based pagination for list endpoints. This provides efficient and consistent traversal of large result sets.

Common Parameters

  • cursor (optional): Pagination cursor from previous response
  • limit (optional): Results per page (default: 20, max: 100)

Response Fields

  • next_cursor: Use this value as the cursor parameter for the next request (surfaced as nextCursor in the SDK)
  • has_more: Boolean indicating if more results are available (surfaced as hasMore in the SDK)

Example: Generic pagination pattern

Error handling

All API errors follow a consistent format:

Error Codes

The REST API returns a plain error string plus the HTTP status code. Error strings are not guaranteed to be stable, so clients should branch on status codes rather than parsing the message.

SDK integration

Use the HTTP API with any JWT signer (or the Python helper) and standard fetch: