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

# Authentication

> Every request carries your company's API key in the Authorization header.

Send the key in the `Authorization` header, prefixed with `Api-Key` and a space:

```bash theme={null}
curl "https://app.reinvented.education/api/clients/users/?limit=1" \
  --header "Authorization: Api-Key YOUR_API_KEY"
```

> [!WARNING]
>
> The key gives access to your company's learners and their personal data. Keep it on your servers:
> never put it in a browser, a mobile app or a public repository. If it leaks, ask your account
> manager to revoke it and issue a new one.

## Getting a key

Keys are issued by the hackU team. Ask your account manager for one; you get a separate key for
production and for the test environment, together with your company's `slug_name`, which the
`/clients/{company_slug}/…` endpoints use.

Each key belongs to **one company**. hackU works out the company from the key, so you do not send it
in your requests.

## Checking your key

Any call works as a check. `GET /clients/users/?limit=1` answers `200` with your first user when the
key is valid.

## When it fails

A missing, malformed, revoked or expired key returns `403 Forbidden`:

```json theme={null}
{ "detail": "Usted no tiene permiso para realizar esta acción." }
```

Check that the header is exactly `Authorization: Api-Key <key>`, with the `Api-Key ` prefix.


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