---
title: "Save an action"
---

> 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 an action

> **Deprecated.**

Path: CloudRaker Paperwork API › Actions

`POST /v1/actions`

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

Pass a saved action 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 action can be nudged per call without being redefined.

```json
{
  "capability": "extract",
  "name": "W-9 basics",
  "config": {
    "schema": {
      "type": "object",
      "properties": {
        "business_name": { "type": ["string", "null"] },
        "tax_classification": { "type": ["string", "null"] }
      }
    }
  }
}
```

Saved actions are also what governance, record-type binding and stable configuration under [keep](https://docs.cloudraker.com/paperwork/api/runs/keep-run) hang off. Check [the catalog](https://docs.cloudraker.com/paperwork/api/actions/list-capabilities) for the config schema of the capability you are saving.

**Learn more:** [Pipeline guide](https://docs.cloudraker.com/paperwork/capabilities/pipeline)

**Deprecated:** saved actions are becoming per-capability configs — use `POST/GET/PATCH/DELETE /v1/{capability}/configs` instead (`/v1/extract/configs`, `/v1/redact/configs`, `/v1/fill/configs`). Signing keeps using `POST /v1/sign`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Request body

_Required._

- `capability` (`createAction.capability`; string, required)
  - one of `"extract"`, `"redact"`, `"fill"`, `"sign"`, `"classify"`, `"split"`, `"compose"`
- `name` (`createAction.name`; string, required)
  - minLength 1; maxLength 200; example `"Medical intake"`
- `config` (`createAction.config`; map<unknown>, optional)
- `mimeType` (`createAction.mimeType`; string, optional)
  - minLength 1; example `"application/pdf"`

## Example request

```json
{
  "capability": "extract",
  "name": "Medical intake",
  "config": {
    "property1": null,
    "property2": null
  },
  "mimeType": "application/pdf"
}
```

## Code samples

### cURL

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

### TypeScript

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

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/actions"

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

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

print(response.text)
```

## Responses

### 201

The saved action.

#### Example

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

- `object` (`createAction.response.201.object`; string, required)
- `id` (`createAction.response.201.id`; string, required)
- `slug` (`createAction.response.201.slug`; string, required)
- `name` (`createAction.response.201.name`; string, required)
- `capability` (`createAction.response.201.capability`; string, required)
  - one of `"extract"`, `"redact"`, `"fill"`, `"sign"`, `"classify"`, `"split"`, `"compose"`
- `config` (`createAction.response.201.config`; map<unknown>, required)

### 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` (`createAction.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`createAction.response.429.message`; string, required)
- `retryable` (`createAction.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`createAction.response.429.requestId`; string, required)
- `docUrl` (`createAction.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/actions/create-action/index.md
