Management API
Administer your org programmatically: API keys, projects, routing policies, and usage
The Management API administers your organization’s API keys, projects, routing policies, and usage from code, such as Pulumi, Terraform, or one-off scripts. The endpoint reference in this section has the full schemas.
Base URL and authentication
Authenticate with a management key from API keys → Management keys in the dashboard, shown once. It acts only on its own organization and can’t call model endpoints.
Reference
New management keys carry all four scopes. A call without the scope returns 403, and a key minted before the scope existed must be re-minted to gain it. Creating an API key needs a payment method on file, except on the Free plan. There’s no rotate endpoint: create the new key, then delete or disable the old one.
Errors use a detail object; see the codes worth branching on.