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.
Creating a token
Section titled “Creating a token”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.
Using a token
Section titled “Using a token”Send the token as a bearer credential on each request:
GET /api/compass/v1/... HTTP/1.1Host: run.gamutassure.comAuthorization: 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.
Managing tokens
Section titled “Managing tokens”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.
Keeping tokens secure
Section titled “Keeping tokens secure”- 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.
Sessions vs. tokens
Section titled “Sessions vs. tokens”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.
- API overview: base URL and capabilities.
- Conventions & errors: request and response shape.