Skip to content

API authentication

The Gamut API authenticates with bearer tokens, named, revocable tokens tied to a user. They let automation and integrations act on the API without a browser session.

Create a named token from your account, then use it in the Authorization header of API requests. A token inherits the role and entitlements of the user who created it: it can do what that user can do, and no more.

Send the token as a bearer credential on each request:

GET /api/compass/v1/... HTTP/1.1
Host: run.gamutassure.com
Authorization: Bearer <your-token>

Bearer-authenticated requests are intended for server-to-server automation. Do not embed tokens in browsers, mobile apps or any client where users could extract them.

You can:

  • List your tokens to see what exists.
  • Revoke a token immediately when it is no longer needed or may be exposed.

Revoking a token takes effect at once, any integration using it will stop being authorised.

  • Store in a secrets manager, never in source control.
  • Scope by user. Create tokens under a user whose role matches what the integration needs, apply least privilege.
  • Rotate tokens periodically, and immediately if exposure is suspected.
  • One token per integration, so you can revoke one without disrupting others.

Interactive use of Gamut in the browser uses a signed-in session; programmatic use uses bearer tokens. For human sign-in, including single sign-on, see Users & roles.