# API Authentication

To authorize, use this code:

```shell
curl "https://api.retreaver.com/calls.json?api_key=[api_key]&company_id=1"
```

If you have a Retreaver account, you can find your Core API key on your [API access page](https://retreaver.com/user/edit/api_access).

You can find it under **Account Settings** -> **API Access**

![](/media/05/050ab85b055d389d41543343ad8d46a66db7bae1a2c3b50b5dc613053c20489e.png)

Retreaver expects for the API key to be included in all API requests to the server in a query string parameter that looks like the following:

`?api_key=[api_key]`

> [!NOTE]
If you have access to more than one company on Retreaver, pass the `company_id` of the company you want to work with. If omitted, the request uses the API key's active Company.

`?api_key=[api_key]&company_id=1`

You can [find your company ID here](https://retreaver.com/company).

> [!WARNING]
> You should **never, ever expose your Retreaver Core API key publicly** as it can be used to access your entire Retreaver account without restriction!

If you suspect your API key has been publicly exposed, [reset it](https://support.retreaver.com/faq/how-do-i-get-my-api-key/).
