Skip to main content

Overview

API keys are managed through the /api/v1/keys endpoints. Unlike the instance endpoints, key management uses session authentication (your browser login) rather than Bearer token authentication. This means these endpoints are primarily used by the dashboard UI. For most users, the API / MCP tab in the dashboard is the simplest way to manage keys.
Key management endpoints require an active browser session (cookie-based auth) and a CSRF token. They cannot be called with a Bearer API key.

List Keys

Retrieve all API keys for your account.

Example Request

Response (200 OK)

The full key is never returned by the list endpoint. Only the key_prefix (first 12 characters) is shown for identification.

Create a Key

Generate a new API key.

Prerequisites

You must have deposited $1 or more to create API keys. If you have not deposited, the endpoint returns HTTP 402.

Request Headers

Request Body

Example Request

Response (201 Created)

The full_key is only returned in this response. Copy and store it securely. It cannot be retrieved again — you will only see the key_prefix in future requests.

Error Responses


Revoke a Key

Permanently deactivate an API key. Revoked keys cannot be used for API requests.

Path Parameters

Request Headers

Example Request

Response (200 OK)

Error Responses

Revocation is immediate. Any in-flight requests using the revoked key will fail with a 401 error.