Authorization header on every request.
For multi-user server-side integrations, also send X-On-Behalf-Of to identify the end user.
Send your API key
Pass your API key as a bearer token.https://apigw.mka1.com as the base URL.
Send X-On-Behalf-Of for an end user
Use X-On-Behalf-Of when your server is making a request for one of your end users.
Set the header value to your own stable end user identifier.
user_123, use that value consistently in requests made for that user.
X-On-Behalf-Of.
Choose the right pattern
Use onlyAuthorization when:
- You are calling the MKA1 API for your own backend workflow.
- The request is not tied to a specific end user.
Authorization and X-On-Behalf-Of when:
- Your server is acting for one of your end users.
- You want requests, responses, files, or usage to stay associated with that end user.
Exchange an API key for a JWT
UsePOST /api/v1/authentication/api-key/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 API key permissions to embed in the token.
token.