> For the complete documentation index, see [llms.txt](https://docs.graspil.com/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graspil.com/en/api/auth.md).

# Authorization

## Authorization <a href="#id-93900fccba" id="id-93900fccba"></a>

The Graspil API uses API keys to provide access to the API. You can get a key in your [dashboard](https://app.graspil.com/).

To get a key, go to the "**My Bots**" section, select the relevant bot, and click the key icon.

Each bot has its own unique key.

The Graspil API expects the API key to be included in all API requests in a header that looks like this:

`Api-Key: meowmeowmeow`

> Replace the placeholder `meowmeowmeow` with your API key.

{% tabs %}
{% tab title="PHP" %}

```php
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Api-Key: ' . $api_key]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

headers = {"Api-Key": api_key}
response = requests.get(url, headers=headers)
```

{% endtab %}

{% tab title="Js" %}

```javascript
fetch(url, {
  method: "GET",
  headers: {
    "Api-Key": api_key
  }
}).then();
```

{% endtab %}
{% endtabs %}
