> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/api/authentication.md).

# Authentication for the Duaer public API

Duaer uses API keys to authenticate public REST API calls.
## Create an API key

1. Log in to Duaer.
2. Go to Settings → API.
3. Select Create an API key.
4. Choose a Label and set an Expiration time for the key.
5. If your plan supports it, choose the Scopes to give the key.
6. Copy the key and use it to authenticate your calls. The full value is shown once.

## Call the API using your key

Send the API key in your API call as a header named `X-DUAER-API-KEY`.

For example, to get all active workflows:

```
curl -X 'GET' \
  '<DUAER_HOST>/api/v1/workflows?active=true' \
  -H 'accept: application/json' \
  -H 'X-DUAER-API-KEY: <your-api-key>'
```

To delete a key: go to Settings → API, select Delete next to the key, then confirm Delete Forever.
## Questions

### Which header carries the Duaer API key?

Send it as `X-DUAER-API-KEY`. The full key is shown once when you create it.

