v1
latestOpenAPI 3.1.02026-07-265817860.8 KBkeys
Mints a per-customer token (a scoped am_jwt_ credential) so a downstream / self-hosted app can call Autumn directly without your secret key. Returns a short-lived access token plus a rotating refresh token, both bound to the given customer. Authenticated with your secret key.
post/v1/keys.mint
Headers
x-api-versionstring required
Request body
Example request
{
"customer_id": "cus_123"
}Response
OK
Example response
{
"access_token": "am_jwt_eyJhbGciOiJIUzI1NiJ9...",
"refresh_token": "am_jwt_eyJhbGciOiJIUzI1NiJ9...",
"expires_at": 1781113864000,
"refresh_expires_at": 1781196664000
}