Authorization header as a Bearer token:
mk_. Send the whole string exactly as issued.
Creating a key
Create and manage keys in the dashboard under API keys. Each key is associated with a domain you’ve verified.Using a key
Never embed a key in client-side code, a mobile app, or a public repository. Anyone with the key can send on your behalf, and read its domain, organization, allowlist and plan. Keep it server-side and inject it from the environment:403 invalid_api_key. See Errors.
Checking a key
GET /api-keys/me returns the key a request authenticates with: its domain, organization, source-IP allowlist, plan and current send-quota usage. Call it to confirm a key works before your first send.
403 invalid_api_key. The request counts as a use of the key, and the plan and quota figures can be up to 30 seconds old.