# Authentication

### Getting your API key <a href="#getting-your-api-key" id="getting-your-api-key"></a>

To use our APIs, you need to get an API key. You can get your API key from the API Keys section of your dashboard profile. This is the key associated with your user account. You can create or delete your API key at any time throw this section. When you change, delete or update your key, all previous API requests will stop working until you configure them to use the new key.

### Authenticating Request

Owlbot.ai for all its RESP APIs uses the standard "Authorization" header to authenticate requests with a Header token. You can authenticate requests by including your API key in the \`Authorization\` header in all your requests to the API.

For example, if your API token is "abcdefgh", you will have to put in your header the following code :

```javascript
"Authorization" : "abcdefgh"
```

#### Some Examples :

with cURL

```javascript
curl --request GET 'https://www.owlbot.ai/api/endpoint' \
--header 'Authorization: abcdefghf'
```

with Javascript Fetch

```javascript
var myHeaders = new Headers();
myHeaders.append("Authorization", "abcdefghf");

var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("https://www.owlbot.ai/api/endpoint", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
```

with PHP cURL

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.owlbot.ai/api/endpoint',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 1,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: abcdefghj'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
```

with Python

```python
import requests

url = "https://www.owlbot.ai/api/endpoint"

payload={}
headers = {
  'Authorization': 'abcdefghj'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.owlbot.ai/core-concepts/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
