# Authentication

The partner gateway checks the evaluation key on every request. Lane status
and dock-slot requests carry a second header as well, the partner reference.
The base address, the health check and the depot list need only the key.

## Evaluation key

Send the evaluation key as a bearer token in the `Authorization` header.
Partners in evaluation share one read-only key per quarter. It is sent to the
technical contact named in the evaluation agreement and is not shown on this
site.

It can read lane status and dock-slot status. It cannot change anything.
Contracted partners receive their own key from their account contact and
should not use the evaluation key.

## Partner reference

The second header is named `X-Partner-Ref`. It tells the gateway which
partner and which batch a request belongs to.

| Setting | Value for partners in evaluation |
|---------|----------------------------------|
| Partner short name | TRIAL |
| Batch | See the Quickstart page |

The header value has three pieces written with no spaces. First the partner
short name in small letters. Then a colon. Then the batch number exactly as
the Quickstart page gives it.

The assembled value is not shown on this site, because partners used to copy
last quarter's value from old pages.

## Errors

A refused lane status or dock-slot request gets one generic client error.
It does not say what was wrong. A missing or wrong partner reference is not
reported at all: the request is answered and the call is left out of your
batch.
