# API Authentication

### API Authentication

To authenticate your API requests, you need to include a header called `x-helium-api-key` in every API call.

#### Header Format

```makefile
 x-helium-api-key: your_api_key_here
```

#### Example

Below is an example of how to include the `x-helium-api-key` header in a request using different tools and languages.

**cURL**

```sh
curl -X GET {api_base_url}/api/v1/tags/{id}" -H "x-helium-api-key: your_api_key_here"
```

**JavaScript (Fetch API)**

```javascript
fetch(api_base_url+'/api/v1/tags/{id}', {
  method: 'GET',
  headers: {
    'x-helium-api-key': 'your_api_key_here'
  }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
```

**Python (Requests)**

<pre class="language-python"><code class="lang-python"><strong>import requests
</strong>
url = api_base_url+"/api/v1/tags/{id}"
headers = {
    'x-helium-api-key': 'your_api_key_here'
}

response = requests.get(url, headers=headers)
print(response.json())
</code></pre>

#### Adding the Header in Postman

1. Open Postman and select your request.
2. Go to the "Headers" tab.
3. Add a new header with the key `x-helium-api-key` and set the value to `your_api_key_here`.

By including the `x-helium-api-key` header in every request, you ensure that your API calls are authenticated and authorized to access the resources.


---

# 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://docs.heliumbuilder.com/api-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.
