> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

# Create Code Record

POST https://fai.buildwithfern.com/code/{domain}/create
Content-Type: application/json

Reference: https://fern.docs.buildwithfern.com/learn/docs/ai-features/ask-fern/api-reference/code/create-code-record

## Authentication

- `Authorization` header (bearer token, required)

## Servers

- `https://fai.buildwithfern.com` (Production, default)
- `https://fai-dev.buildwithfern.com` (Development)
- `http://localhost:8080` (Local)

## Request

### Path parameters

- `domain` (string, required)

### Body (application/json)

- `any`

## Response

### 200

Successful Response

- `list of object`
  - `code_id` (string, required) — The unique identifier of the created code entry

## Examples

**Request**

```json
undefined
```

**Response**

```json
[
  {
    "code_id": "string"
  }
]
```