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

# sec-cpt

> POST /api/v1/sec-cpt on web.veilroute.dev

```http theme={null}
POST https://web.veilroute.dev/api/v1/sec-cpt
```

Solves the Akamai `sec-cpt` proof-of-work challenge and returns the answers to submit.

## Request

### Headers

**X-Api-Key** `string` *required*

Your Akamai Web API key.

**Content-Type** `string` *required*

Must be `application/json`.

### Body

**cookie** `string` *required*

The `sec_cpt` cookie/token from the challenge (also accepted as `sec_cpt`).

**nonce** `string`

The challenge nonce.

**difficulty** `number` (default: 2000)

Proof-of-work difficulty from the challenge.

**count** `number` (default: 10)

How many answers the challenge asks for.

**timestamp** `number`

Challenge timestamp. Defaults to the current time if omitted.

## Response

**answers** `number[]`

The proof-of-work answers, in order. Submit them to the sec-cpt endpoint.

**count** `number`

Number of answers returned.

**attempts** `number`

Total hashing attempts it took (informational).

```bash curl theme={null}
curl -X POST https://web.veilroute.dev/api/v1/sec-cpt \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $VEILROUTE_KEY" \
  -d '{"cookie":"<sec_cpt>","difficulty":2000,"count":10}'
```

```json 200 OK theme={null}
{ "answers": [40182, 118, 9043, ...], "count": 10, "attempts": 51234 }
```

> [!NOTE]
>
> A higher `difficulty` or `count` means more compute and higher latency.

See [Errors](/errors) for non-`200` responses.


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