# Authentication

CloudFactory authenticates the API requests using API keys generated. Please contact our support team to get your API keys.

API keys are unique to the customer and given at workstream/project level.

Authenticate the API requests by sending the key generated in the header of the request as shown below:

```bash
curl -H "x-api-key: YOUR_API_KEY" https://api.cloudfactory.app/v1/tasks
```

{% hint style="warning" %}
Please be sure to keep your API access tokens secure! Do not share them in emails, chat messages, client-side code or publicly accessible sites.

If you have accidentally shared an API access token publicly, you can request to have it revoked.
{% endhint %}


---

# 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://developer.cloudfactory.com/getting-started/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.
