# Getting Started

Source: https://docs.annoto.net/developers/rest-api/authentication-getting-started

We do not use cookies



The API requests are to be made to the authentication endpoint:  
`https://auth.DOMAIN`

- DOMAIN - the deployment domain



Authorization Headers

All API requests to the Annoto backend must be authenticated. The authentication credentials must be provided as two Bearer authorization headers.

The authorization headers are JWT tokens and have relatively short life span as can be inspected by decoding the obtained JWTs. It is advised to make sure the tokens are not expired before using them in API requests and regularly request new tokens.



Host Authorization Header

A Bearer `Host-Authorization` header is used to identify and authorize requests for specific Host (organization site).

The requests must include this header as:

| **Header Name** | **Header Value** |
|---|---|
| Host-Authorization | Bearer JWT\_TOKEN |

User Authorization Header

A Bearer `Authorization` header is used to identify and authorize requests for specific user and provide access based on user scopes.

The requests must include this header as:

| **Header Name** | **Header Value** |
|---|---|
| Authorization | Bearer JWT\_TOKEN |
