---
title: "Read a front door"
---

> 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.

# Read a front door

Path: cloudraker.run API

`GET /_cv/door/{embed_key}`

The public config of the door of an embed key, and the Turnstile site key. The `Origin` must be an origin of the door.

## Path parameters

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

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://your-org.cloudraker.run/_cv/door/<embed_key>'
```

### TypeScript

```typescript
const url = 'https://your-org.cloudraker.run/_cv/door/<embed_key>';
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/door/<embed_key>"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

The public door.

#### Example

```json
{
  "door": {
    "id": "support/support",
    "name": "Acme support",
    "languages": [
      "string"
    ],
    "lang": "string",
    "variables": {
      "property1": {
        "type": "boolean",
        "values": [
          "string"
        ],
        "min": 0,
        "max": 0,
        "default": null
      },
      "property2": {
        "type": "boolean",
        "values": [
          "string"
        ],
        "min": 0,
        "max": 0,
        "default": null
      }
    },
    "theme": {},
    "gate": {},
    "greeting": "string",
    "files": true
  },
  "turnstile": {
    "sitekey": "string",
    "challenge_url": "http://example.com"
  }
}
```

- `door` (`getDoor.response.200.door`; object, required) — The browser view of a front door. No guard, router, agent or limit leaves the server.
  - `id` (`getDoor.response.200.door.id`; string, required)
    - example `"support/support"`
  - `name` (`getDoor.response.200.door.name`; string, required)
    - example `"Acme support"`
  - `languages` (`getDoor.response.200.door.languages`; array | null, required)
  - `lang` (`getDoor.response.200.door.lang`; string | null, required)
  - `variables` (`getDoor.response.200.door.variables`; map<object>, required)
  - `theme` (`getDoor.response.200.door.theme`; object | null, required) — `channels.web.theme` of the door.
  - `gate` (`getDoor.response.200.door.gate`; object | null, required) — `channels.web.gate` of the door: `title`, `body`, `accept`, `links`.
  - `greeting` (`getDoor.response.200.door.greeting`; string | null, required)
  - `files` (`getDoor.response.200.door.files`; boolean, required) — The chat may send files.
- `turnstile` (`getDoor.response.200.turnstile`; object, required)
  - `sitekey` (`getDoor.response.200.turnstile.sitekey`; string, required)
  - `challenge_url` (`getDoor.response.200.turnstile.challenge_url`; string, required)
    - format `uri`

### 404

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

#### Example

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

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

### 503

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

#### Example

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

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


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