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

# Allthenticate API: keys and authentication

> Create an Allthenticate API key in the admin portal and send it as a Bearer token or api_key parameter. The full API reference is at api.allthenticate.com.

The API lets your own systems manage users, groups, doors, schedules and guest links. The reference at [api.allthenticate.com](https://api.allthenticate.com/) lists every endpoint and includes an interactive tester.

## Create an API key

API keys are created by a Super Admin.

**1. Open Settings**

In the [admin portal](https://admin.allthenticate.com), go to **Settings**. The **API Keys** tab lists your organization's keys.

**2. Name the key and set its lifetime**

Optionally enter a **Name** so you can tell keys apart, and set **Valid for** to the number of days the key should work. `0` means it never expires.

**3. Generate and copy it**

Click **Generate a New Key** and copy the key. It is shown only once; if you lose it, delete it and generate a new one.

> [!WARNING]
>
> An API key acts with the permissions of the admin who created it. Do not share it, and delete keys you no longer use from the **API Keys** list.

## Authenticate requests

Send the key in one of two ways:

```bash Bearer token theme={null}
curl https://api.allthenticate.com/multipleusers \
  --header "Authorization: Bearer <API_KEY>"
```

```bash Query parameter theme={null}
curl "https://api.allthenticate.com/multipleusers?api_key=<API_KEY>"
```

If the key is missing, invalid or expired, the API returns `401` with `"error": "Unauthorized action - user is not logged in."`

## Explore and test the API

* **In the browser:** on [api.allthenticate.com](https://api.allthenticate.com/), click **Authorize** and enter your key, either as `Bearer <API_KEY>` or on its own as a query parameter. Then expand an endpoint, click **Try it out**, fill in the parameters and click **Execute**.
* **In Postman:** import `https://api.allthenticate.com/swagger.json` as a Postman collection, then set the collection's `baseUrl` variable to `https://api.allthenticate.com/`.

## Guides that use the API

> [card] [Hospitality](https://help.allthenticate.com/help/integrations/hospitality.md)
>
> Invite guests, assign PINs, schedule doors and issue guest links.

> [card] [Climbing gyms](https://help.allthenticate.com/help/integrations/climbing-gyms.md)
>
> Check membership at every unlock and sync members from gym software.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.