Skip to main content
An organization access token (OAT) lets your server call the Polar API for one organization. Tokens start with polar_oat_ and carry the scopes you choose when you create them.
Anyone with a token can act on behalf of your organization within its scopes. Keep tokens on your server or in a secret store. Never put them in client-side code or commit them.
A token belongs to one environment. Create it in the sandbox for https://sandbox-api.polar.sh, and again in production for https://api.polar.sh.

Create a token

  • Open Settings → Access Tokens
  • Click Create token
  • Enter a Name, such as app-production
  • Choose an Expiration: 1 to 365 days, or No expiration
  • Select the Scopes your app needs
  • Copy the token. You won’t be able to see it again
Not available from the MCP server.

Use a token

Send it as a bearer token:
Because a token belongs to one organization, you don’t pass an organization ID when you create resources with it. The same token works for the Polar CLI in CI (POLAR_ACCESS_TOKEN) and for headless MCP clients.

Scopes

Give each token only the scopes it needs. Scopes come in read and write pairs per resource, such as products:read and products:write. A request outside the token’s scopes fails with 403. You can change a token’s name and scopes later from Settings → Access Tokens.

Revoke or replace a token

To revoke a token, open Settings → Access Tokens and click Revoke next to it. Requests with it fail right away. Tokens can’t be rotated in place. To replace one, create a new token, deploy it, then revoke the old one.

Learn more