> ## Documentation Index
> Fetch the complete documentation index at: https://docs.taskguru.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> How to authenticate requests to the TaskGuru API.

# Acquiring an API Key

To interact with the TaskGuru API either through a script, LangChain, or a Custom GPT, you need a Personal Access Token.

Currently, all API requests should include the token in the `Authorization` header as a Bearer token.

## Generating a Token

<Steps>
  <Step title="Log In">
    Log into your TaskGuru account.
  </Step>

  <Step title="Navigate to API Settings">
    Go to **Settings > API Tokens**.
  </Step>

  <Step title="Create Token">
    Click **Generate New Token**, then set an expiration date and a description (e.g., "Agent AutoGPT Key").
  </Step>

  <Step title="Secure your token">
    Copy the token to a secure location. <Warning>It will only be shown once.</Warning>
  </Step>
</Steps>

## Making Requests

Include the token in your HTTP headers:

```bash theme={null}
curl -X GET "https://api.taskguru.com/v1/boards" \
  -H "Authorization: Bearer <YOUR_API_TOKEN>" \
  -H "Content-Type: application/json"
```

## Security Best Practices

<Warning>
  **Never commit your API key to GitHub or source control.** If your AI agent
  accidentally leaks its API key, immediately revoke it in the dashboard.
</Warning>

<Tip>
  Consider giving different AI agents different keys so you can track
  specifically which bot created which task.
</Tip>
