New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

Derive Token

POST 

/v2alpha1/admin/apiKeys:derive

Mints a short-lived JWT or Macaroon token from an issued or imported root API key. Derived JWTs and Macaroons cannot mint successor tokens. The derived token inherits the permissions of the parent API key.

POST /v2alpha1/admin/apiKeys:derive
{
"credential": "ory_ak_v1_...",
"ttl": "1h"
}
SDK ReferenceTypeScript
adminDeriveToken(deriveTokenRequest)
ParametersTypeRequiredDescription
deriveTokenRequestDeriveTokenRequestrequired
VariableType
dataDeriveTokenResponse