---
title: "Save a extract config"
---

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

# Save a extract config

Path: CloudRaker Paperwork API › Configs

`POST /v1/extract/configs`

Saves a reusable, named extract configuration so calls stop repeating themselves.

Pass it to any run as `action: "<id or slug>"`. Inline config on the call is deep-merged over the saved config (an inline `schema` replaces the saved one whole), and inline wins — so one saved config can be nudged per call without being redefined.

**Learn more:** [Extract capability](https://docs.cloudraker.com/paperwork/capabilities/extract)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Request body

_Required._

- `name` (`createExtractConfig.name`; string, required)
  - minLength 1; maxLength 200; example `"Medical intake"`
- `config` (`createExtractConfig.config`; map<unknown>, optional)

## Example request

```json
{
  "name": "Medical intake",
  "config": {
    "property1": null,
    "property2": null
  }
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.cloudraker.com/v1/extract/configs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Medical intake",
  "config": {
    "property1": null,
    "property2": null
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/extract/configs';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({name: 'Medical intake', config: {property1: null, property2: null}})
};

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

### Python

```python
import requests

url = "https://api.cloudraker.com/v1/extract/configs"

payload = {
    "name": "Medical intake",
    "config": {
        "property1": None,
        "property2": None
    }
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 201

The saved config.

#### Example

```json
{
  "object": "config",
  "id": "string",
  "slug": "string",
  "name": "string",
  "capability": "extract",
  "config": {
    "property1": null,
    "property2": null
  },
  "updatedAt": "string",
  "revision": 1
}
```

- `object` (`createExtractConfig.response.201.object`; string, required)
- `id` (`createExtractConfig.response.201.id`; string, required)
- `slug` (`createExtractConfig.response.201.slug`; string, required)
- `name` (`createExtractConfig.response.201.name`; string, required)
- `capability` (`createExtractConfig.response.201.capability`; string, required)
  - one of `"extract"`, `"redact"`, `"fill"`, `"sign"`, `"classify"`, `"split"`, `"compose"`
- `config` (`createExtractConfig.response.201.config`; map<unknown>, required)
- `updatedAt` (`createExtractConfig.response.201.updatedAt`; string, optional)
- `revision` (`createExtractConfig.response.201.revision`; integer, optional) — The number of the saved config. It starts at 1, and each update that changes `config` adds one. Each run reports the revision it used, in `config.revision`.
  - min 1; max 9007199254740991

### 400

Ambiguous redaction target (`ambiguous_capability`), or a `config.schema` outside the extraction schema dialect (`invalid_schema`).

### 429

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`createExtractConfig.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`createExtractConfig.response.429.message`; string, required)
- `retryable` (`createExtractConfig.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`createExtractConfig.response.429.requestId`; string, required)
- `docUrl` (`createExtractConfig.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/configs/create-extract-config/index.md
