Developer
SECURITY

Authentication

Use scoped Bearer keys, rotate them safely and keep secrets off the client.

Bearer authentication

Send the API key in every request as Authorization: Bearer <key>. Session cookies work in the dashboard, but integrations and server jobs should use keys.

Authorization: Bearer ms_live_your_secret_key

Key scopes

ScopeAccessUse it for
organizationAll resources in one organizationTrusted backend services
domainLinks and analytics for one domainCampaign tools and AI assistants
create_onlyCreate links without reading the libraryPublic forms and low-trust integrations
read_onlyRead links and analyticsDashboards, BI and reporting

Domain keys cannot manage workspace credentials, subscriptions or organization-wide bulk jobs. Use an organization key for those operations. Domain-key create and list requests default to the authorized domain.

Key lifecycle

  1. Name a key after the system that owns it.
  2. Choose the smallest useful scope and an expiry.
  3. Store it in a secret manager or environment variable.
  4. Rotate before expiry and revoke the previous key after rollout.
A key is a password.Never embed a secret key in browser JavaScript, a mobile binary, a public repository or a screenshot.

Manage API keys