---
title: "Turnstile challenge page"
---

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

# Turnstile challenge page

Path: cloudraker.run API

`GET /_cv/challenge/{embed_key}`

An HTML page for an iframe. It runs the Turnstile check and posts `{ type: 'run.turnstile', token }` to the parent, only to `origin`.

## Path parameters

- `embed_key` (`getChallenge.path.embed_key`; string, required) — The public `rek_` embed key of a front door.
  - pattern `^rek_[A-Za-z0-9]{24}$`

## Query parameters

- `origin` (`getChallenge.query.origin`; string, required) — The exact origin of the parent page.

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://your-org.cloudraker.run/_cv/challenge/<embed_key>?origin=string'
```

### TypeScript

```typescript
const url = 'https://your-org.cloudraker.run/_cv/challenge/<embed_key>?origin=string';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://your-org.cloudraker.run/_cv/challenge/<embed_key>?origin=string"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

The challenge page.

#### Example

```text
string
```

### 403

Error. See the `code` table in the guides.

#### Example

```json
{
  "error": {
    "code": "run_busy",
    "message": "string",
    "run_id": "string",
    "details": null
  }
}
```

- `error` (`getChallenge.response.403.error`; object, required)
  - `code` (`getChallenge.response.403.error.code`; string, required)
    - example `"run_busy"`
  - `message` (`getChallenge.response.403.error.message`; string, required)
  - `run_id` (`getChallenge.response.403.error.run_id`; string, optional)
  - `details` (`getChallenge.response.403.error.details`; unknown, optional)


Source: https://docs.cloudraker.com/run/api/get-challenge/index.md
