Exchange an API key for a JWT
UsePOST /api/v1/authentication/api-keys/exchange-token when you need a short-lived JWT for a downstream service.
Send your MKA1 API key in Authorization.
Then pass a JSON body with:
audience: The service URL that should accept the token.externalUserId: Your end user ID for the JWT subject.expiresIn: Optional token lifetime in seconds. The OpenAPI spec allows 300 to 2592000.permissions: Optional subset of the key’s scopes (its permissions, for exampleread:responsesorread:files) to embed in the token. If omitted, the token carries every scope the key has. A token can narrow the key’s scopes but never widen them.
token.