---
title: "CAP challenge"
method: POST
path: "/protection/cap/challenge"
tags: ["Protection"]
---

# CAP challenge

`POST /protection/cap/challenge`

## Request

- Base URL: `https://api.takeshape.io`
- URL: `https://api.takeshape.io/protection/cap/challenge`
- Auth: none declared

Gets a new CAP challenge to be solved by the client.

## Response `200`

CAP Challenge response

- CAPChallengeResponse
  - `challenge` object, required
    - `c` number, required: Challenge code
    - `s` number, required: Challenge seed
    - `d` number, required: Challenge difficulty
  - `token` string: Challenge token
  - `expires` number, required: Expiration timestamp

---

[API](https://skmtc.dev/takeshape/apis/takeshape-rest-api.md) - [All operations](https://skmtc.dev/takeshape/apis/takeshape-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/takeshape/apis/takeshape-rest-api/revisions/2e088f4d4c64?raw)
