# Authentication

Source: https://help.eniston.io/api/authentication

To connect to our API, you must use the `Authorization` header and use a valid access token. You can generate access tokens in your [account settings](https://eniston.io/access-token).

![](https://cdn.eniston.com/bases/a04075b1-7264-47c6-9e3d-7475bb002bef/attachments/eniston-api-token_1637162917.png)

### Usage of access tokens

To be able to access any of the available endpoints, you must authenticate with an access token.

```php
$access_token = 't8ZMQLQiquuyMjHFqfqW0hlEvQsNioCQLLe9npgZ';

curl https://eniston.io/api/... \
    -H "Authorization: Bearer $access_token" \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json'
```

If you run into errors, see the [Introduction](https://help.eniston.io/api/introduction) for more information.
