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

# Mint Claude Code token

> Mint a short-lived token for the Claude Code skill.

Mint a short-lived token for the Claude Code skill. The skill exchanges the token for a session-scoped key on the user's local machine, enabling the `dacard-framework` skill calls to read against the caller's account.

```bash theme={null}
curl -X POST https://app.dacard.ai/api/integrations/claude-code/mint-token \
  -H "Authorization: Bearer $DACARD_API_KEY"
```

| Property       | Value                            |
| -------------- | -------------------------------- |
| **Auth**       | Required                         |
| **TTL**        | 5 minutes                        |
| **Idempotent** | No (each call mints a new token) |

## Response

```json theme={null}
{
  "token": "cct_...",
  "expiresAt": "2026-05-06T12:05:00Z"
}
```

## Errors

| Status | Code             | When                  |
| ------ | ---------------- | --------------------- |
| 401    | `AUTH_REQUIRED`  | No session.           |
| 500    | `INTERNAL_ERROR` | Mint or write failed. |

Use the token in the Claude Code skill installer flow:

```bash theme={null}
claude code skills install dacard-framework --token cct_...
```
