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

# Authentication

Every request to the ActiveNow API is authenticated with your school's API key. You pass the key in the `Authorization` header, which lets an external system act on your school's data without a user logging in.

## Where to get an API key

You create API keys in the ActiveNow admin panel.

{% stepper %}
{% step %}

#### Open the API settings

Go to *Settings → API*.
{% endstep %}

{% step %}

#### Create a new key

Under *API Keys*, click *Create new key*. Copy the generated key right away — it starts with `sk_`.
{% endstep %}
{% endstepper %}

## How to authenticate a request

Add the key to the `Authorization` header as a Bearer token:

```
Authorization: Bearer sk_...
```

Example request that creates a participant:

```bash
curl https://app.activenow.io/api/v1/participants \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{"first_name": "Jan", "last_name": "Kowalski", "email": "jan@activenow.io"}'
```

If the key is invalid or missing, the API returns a `401 Unauthorized` response.

{% hint style="warning" %}
Treat your API key like a password — never put it in front-end code or public repositories. If a key leaks, delete it under *Settings → API* and create a new one.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.activenow.io/en/api-documentation/authentication.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
