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

# Create an API token

> Generate a scoped, expiring API token.

> [!NOTE]
>
> `POST /api/v1/token`

Applications created with a token are marked with it. A token without root access can only access applications associated with that token.

## Headers

**X-API-Key** `string` *required*

API key.

## Body

**ttl** `integer` (default: 86400)

Lifetime in seconds.

**accessLevel** `string`

Set to `root` for a token that can access all applications.

## Response

**responseCode** `integer`

`200`

**token** `string`

The API token. Send it in `X-API-Key`. It expires after `ttl` seconds.

```bash cURL theme={null}
curl --request POST "https://acme.sb.getid.dev/api/v1/token" \
  --header "X-API-Key: $CHECKIN_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{ "ttl": 3600 }'
```

```json 200 theme={null}
{ "responseCode": 200, "token": "..." }
```


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