# Authentication

Source: https://help.releasesapp.com/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 [workspace settings](https://releasesapp.com/api-token).

### Usage of access tokens

To be able to access any of the available [endpoints](https://help.releasesapp.com/api/endpoints), you must authenticate with a valid access token.

```php
$access_token = '8ERqhoTUnG3uBdgwvtf1GAeRb10RygKvOWJX2R4U';

curl https://releasesapp.com/api/{endpoint} \
    -H "Authorization: Bearer $access_token" \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json'
```

If you run into errors, see the [Introduction](https://help.releasesapp.com/api/introduction) for more information or [get in touch](https://help.releasesapp.com/faq/how-can-i-contact-you-directly) with us.
