For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages can be requested by appending `.md` to the URL, or by setting the `Accept` header to `text/markdown`.
Skip to main content
Management API

Create an API key

POST 

/api-keys

Create an API key in your workspace, authenticated with a management token.

This endpoint issues two kinds of key:

  • Permanent key — a long-lived key for a project. Set project_id (and optionally name) and omit ttl. Use this for a normal project API key.
  • Temporary key — a short-lived key that expires automatically. Set ttl to the lifetime in seconds. Use temporary keys to authenticate end-user requests without exposing a long-lived key.

The au region supports Batch only, so it cannot be combined with type=rt.

Request

Responses

Created