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"
}
Request
Responses
- 200
- default
A successful response.
An unexpected error response.