# Authorization

LianaMailer uses the same OAuth 2.0 client credentials flow as every Liana API.
[Authentication](/authentication) explains how to create credentials in LianaAccount, request a
token and handle its errors. This page lists what is specific to LianaMailer.

## Scope

Create the credentials for your LianaMailer application. The scope is optional in the token
request: without it, the token gets every scope the credentials have, `mailer-api` and its
`:read`, `:write` and `:delete` sub-scopes.

LianaMailer doesn't check the sub-scopes yet. A token with only `mailer-api:read` can still make
changes, so don't rely on sub-scopes to limit what a token can do.

## Regions

Bearer tokens work in every region. [Regions](./introduction#regions) lists each region's API URL.

## Authorization header

Write `Bearer` with a capital B. v3 does not accept other spellings. [Errors](./errors) lists what
the API returns when the header is missing or invalid.
