API referenceEndpointsApi keys
Create an API key
Creates an API key; the token is returned only in this response.
Authorization
apiKey AuthorizationBearer <token>
An API key from the dashboard (ms_…), sent as Authorization: Bearer. A sending-only key reaches the /emails routes only.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api-keys" \ -H "Content-Type: application/json" \ -d '{ "name": "Production sending", "permission": "sending_access", "domain_id": "d4e5f6a7-b8c9-4d0e-8f1a-2b3c4d5e6f7a" }'{ "id": "ae2014de-c168-4c61-8267-70d2662a1ce1", "token": "token"}