---
title: Authentication
summary: Bearer tokens minted by SequiPay Core, scoped to one company.
group: Get started
order: 20
---

Every request carries a bearer access token:

```
Authorization: Bearer <access_token>
```

## Where tokens come from

Tokens are minted by **SequiPay Core** as an access/refresh pair, each scoped to one SequiPay company and granted a set of per-module scopes. This API validates and reads with a token; it does not issue tokens. To get a credential, ask your SequiPay Core administrator to create one for your integration and grant it the scopes it needs.

## How a request is checked

An API Gateway Lambda authorizer validates the token on every request. It resolves the **company** the token belongs to and the **scopes** it was granted, and injects both into the request. It fails closed: a missing, expired, revoked, or malformed token is rejected with `401` before any handler runs.

## Company isolation

The company is taken from the token, never from the request, so a token only ever sees its own company's data. You never pass a company id.

## Scopes

Each route requires a `module:action` scope the token must carry — for example `users:read` for the users endpoints. A token without the required scope gets `403`. Scopes are granted to the credential in SequiPay Core. Call `GET /v1/scopes` to see what the current token holds.

## Revocation latency

Authorizer decisions are cached at the edge for up to five minutes, so a revoke or suspension in Core takes effect within that window.

See [Conventions](/guides/conventions.md) for the response envelope and [Errors and retries](/guides/errors.md) for the `401` and `403` cases.
