Ask AI is now on the home page — ask a question and get a sourced answer from the Ory docs. You'll also find it in the bottom-right corner of any page.

Skip to main content

Issue API Key

POST 

/v2alpha1/admin/issuedApiKeys

Creates a new API key for a given actor. The secret is returned only once in the response and cannot be retrieved later. Keys can be scoped with specific permissions and have optional expiration.

POST /v2alpha1/admin/issuedApiKeys
{
"name": "production-service",
"actor_id": "user_123",
"scopes": ["read", "write"],
"ttl": "8760h"
}

Request

Responses

A successful response.