
All endpoints in the Telematics API require bearer token authentication.  Unauthenticated requests will receive a 401 status code response.

To retrieve a bearer token, send a POST request to the `/token` endpoint using your `clientId` and `clientSecret` as parameters.

### Example

```bash
curl -X POST  --data "clientId=${clientId}" --data "clientSecret=${clientSecret}" https://${HOST}/vehicle-status-api/token
{
  "access_token": "...",
  "token_type": "Bearer",
  "expires_in": "1675667857713"
}
```

The `access_token` value will be used as our bearer token to authenticate requests to the Telematics API.

::: info
- Your `access_token` will expire after the `expires_in` time in the response body.  This is 5 minutes after the initial request time.
- If you encounter a 504 timeout error from this endpoint, we recommend retrying the request using an exponential backoff strategy.
:::
