# Authentication

In order to use the [Workers API](/toolhouse/developers/workers-api.md) you'll need to authenticate using a Toolhouse API key.

You can see the API key in the [API Keys section](https://toolhouse.app/settings/api-keys) or by navigating to your user menu and selecting **API Keys.**

The first API key is generated for you when you sign up for Toolhouse.

### Adding a new API key

1. Go to the [API Keys section](https://toolhouse.app/settings/api-keys) or by navigate to your user menu, then select **API Keys.**
2. In the **Generate new API key** section, type a name for your API Key. Give the key a recognizable name so you can reference it later
3. Click **Generate.**

### API key security

API Keys are encrypted both in transit and at rest in the Toolhouse platform.

{% hint style="info" %}
Toolhouse will never ask you to share API keys or other sensitive details.
{% 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://docs.toolhouse.ai/toolhouse/developers/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.
