---
title: "Post documents"
---

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

# Post documents

Path: CloudRaker RakeSign API › RakeSign

`POST /v1/signing/documents`

Uses the same resource permissions and lifecycle as the RakeSign application. Integration access is limited to its shared team. Required scopes: documents:write.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Header parameters

- `Idempotency-Key` (`signingPostDocuments.header.Idempotency-Key`; string, optional) — Reuse a key for a retry with the same request body.
  - minLength 8; maxLength 200

## Request body

_Required._

- `generatedText` (`signingPostDocuments.generatedText`; string, optional)
  - maxLength 50000
- `generation` (`signingPostDocuments.generation`; object, optional)
  - `kind` (`signingPostDocuments.generation.kind`; string, required)
    - one of `"rich"`, `"compose"`, `"docx"`
  - `markdown` (`signingPostDocuments.generation.markdown`; string, optional)
    - maxLength 50000
  - `templateId` (`signingPostDocuments.generation.templateId`; string, optional)
    - minLength 1; maxLength 200
  - `styleProfileId` (`signingPostDocuments.generation.styleProfileId`; string, optional)
    - minLength 1; maxLength 200
  - `rendererOptions` (`signingPostDocuments.generation.rendererOptions`; object, optional)
    - `title` (`signingPostDocuments.generation.rendererOptions.title`; string, optional)
      - maxLength 300
    - `author` (`signingPostDocuments.generation.rendererOptions.author`; string, optional)
      - maxLength 300
    - `subject` (`signingPostDocuments.generation.rendererOptions.subject`; string, optional)
      - maxLength 1000
    - `pageSize` (`signingPostDocuments.generation.rendererOptions.pageSize`; string, optional)
      - one of `"a4"`, `"us-letter"`, `"a5"`, `"us-legal"`
    - `fontSize` (`signingPostDocuments.generation.rendererOptions.fontSize`; string, optional)
      - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
    - `logo` (`signingPostDocuments.generation.rendererOptions.logo`; object, optional)
      - `url` (`signingPostDocuments.generation.rendererOptions.logo.url`; string, optional)
        - format `uri`; maxLength 2048
      - `svg` (`signingPostDocuments.generation.rendererOptions.logo.svg`; string, optional)
        - maxLength 262144
      - `height` (`signingPostDocuments.generation.rendererOptions.logo.height`; string, optional)
        - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
      - `allPages` (`signingPostDocuments.generation.rendererOptions.logo.allPages`; boolean, optional)
      - `position` (`signingPostDocuments.generation.rendererOptions.logo.position`; string, optional)
        - one of `"left"`, `"center"`, `"right"`
    - `margins` (`signingPostDocuments.generation.rendererOptions.margins`; object, optional)
      - `otherPages` (`signingPostDocuments.generation.rendererOptions.margins.otherPages`; object, optional)
        - `top` (`signingPostDocuments.generation.rendererOptions.margins.otherPages.top`; string, optional)
          - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
        - `right` (`signingPostDocuments.generation.rendererOptions.margins.otherPages.right`; string, optional)
          - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
        - `bottom` (`signingPostDocuments.generation.rendererOptions.margins.otherPages.bottom`; string, optional)
          - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
        - `left` (`signingPostDocuments.generation.rendererOptions.margins.otherPages.left`; string, optional)
          - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
      - `firstPage` (`signingPostDocuments.generation.rendererOptions.margins.firstPage`; object, optional)
        - `top` (`signingPostDocuments.generation.rendererOptions.margins.firstPage.top`; string, optional)
          - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
    - `header` (`signingPostDocuments.generation.rendererOptions.header`; object, optional)
      - `text` (`signingPostDocuments.generation.rendererOptions.header.text`; string, optional)
        - maxLength 200
      - `firstPage` (`signingPostDocuments.generation.rendererOptions.header.firstPage`; string, optional)
        - maxLength 200
      - `lastPage` (`signingPostDocuments.generation.rendererOptions.header.lastPage`; string, optional)
        - maxLength 200
      - `position` (`signingPostDocuments.generation.rendererOptions.header.position`; string, optional)
        - one of `"left"`, `"center"`, `"right"`
    - `pageNumbers` (`signingPostDocuments.generation.rendererOptions.pageNumbers`; object, optional)
      - `firstPage` (`signingPostDocuments.generation.rendererOptions.pageNumbers.firstPage`; boolean, optional)
      - `lastPage` (`signingPostDocuments.generation.rendererOptions.pageNumbers.lastPage`; boolean, optional)
      - `format` (`signingPostDocuments.generation.rendererOptions.pageNumbers.format`; string, optional)
        - maxLength 60
      - `style` (`signingPostDocuments.generation.rendererOptions.pageNumbers.style`; string, optional)
        - one of `"1"`, `"i"`, `"I"`, `"a"`, `"A"`
      - `position` (`signingPostDocuments.generation.rendererOptions.pageNumbers.position`; string, optional)
        - one of `"left"`, `"center"`, `"right"`
    - `colors` (`signingPostDocuments.generation.rendererOptions.colors`; object, optional)
      - `text` (`signingPostDocuments.generation.rendererOptions.colors.text`; string, optional)
        - pattern `^#[0-9a-fA-F]{6}$`
      - `link` (`signingPostDocuments.generation.rendererOptions.colors.link`; string, optional, nullable)
        - pattern `^#[0-9a-fA-F]{6}$`
      - `codeBackground` (`signingPostDocuments.generation.rendererOptions.colors.codeBackground`; string, optional, nullable)
        - pattern `^#[0-9a-fA-F]{6}$`
      - `tableHeaderBackground` (`signingPostDocuments.generation.rendererOptions.colors.tableHeaderBackground`; string, optional, nullable)
        - pattern `^#[0-9a-fA-F]{6}$`
      - `tableHeaderText` (`signingPostDocuments.generation.rendererOptions.colors.tableHeaderText`; string, optional, nullable)
        - pattern `^#[0-9a-fA-F]{6}$`
      - `tableBorder` (`signingPostDocuments.generation.rendererOptions.colors.tableBorder`; string, optional, nullable)
        - pattern `^#[0-9a-fA-F]{6}$`
      - `tableStripe` (`signingPostDocuments.generation.rendererOptions.colors.tableStripe`; string, optional, nullable)
        - pattern `^#[0-9a-fA-F]{6}$`
    - `fonts` (`signingPostDocuments.generation.rendererOptions.fonts`; object, optional)
      - `body` (`signingPostDocuments.generation.rendererOptions.fonts.body`; string, optional)
        - pattern `^[A-Za-z0-9 ]{2,60}$`
      - `h1` (`signingPostDocuments.generation.rendererOptions.fonts.h1`; string, optional)
        - pattern `^[A-Za-z0-9 ]{2,60}$`
      - `h2` (`signingPostDocuments.generation.rendererOptions.fonts.h2`; string, optional)
        - pattern `^[A-Za-z0-9 ]{2,60}$`
      - `h3` (`signingPostDocuments.generation.rendererOptions.fonts.h3`; string, optional)
        - pattern `^[A-Za-z0-9 ]{2,60}$`
      - `h4` (`signingPostDocuments.generation.rendererOptions.fonts.h4`; string, optional)
        - pattern `^[A-Za-z0-9 ]{2,60}$`
      - `tableHeader` (`signingPostDocuments.generation.rendererOptions.fonts.tableHeader`; string, optional)
        - pattern `^[A-Za-z0-9 ]{2,60}$`
      - `code` (`signingPostDocuments.generation.rendererOptions.fonts.code`; string, optional)
        - pattern `^[A-Za-z0-9 ]{2,60}$`
  - `values` (`signingPostDocuments.generation.values`; map<SigningJsonValue>, optional)
  - `schema` (`signingPostDocuments.generation.schema`; map<SigningJsonValue>, optional)
- `title` (`signingPostDocuments.title`; string, optional)
  - minLength 1; maxLength 200
- `teamId` (`signingPostDocuments.teamId`; string, optional, nullable)
  - minLength 1; maxLength 200
- `privacy` (`signingPostDocuments.privacy`; string, optional)
  - one of `"team"`, `"participants"`
- `message` (`signingPostDocuments.message`; string, optional)
  - maxLength 2000
- `signingMode` (`signingPostDocuments.signingMode`; string, optional)
  - one of `"manual"`, `"delegated"`
- `verification` (`signingPostDocuments.verification`; array<object>, optional) — The checks that each signer and approver must complete. Defaults to email when omitted.
  - `method` (`signingPostDocuments.verification.method`; string, required) — The verification method. email: sends a code by email. sms: sends a code by SMS to the recipient phone number.
    - one of `"email"`, `"sms"`
- `delegation` (`signingPostDocuments.delegation`; object, optional, nullable)
  - `templateId` (`signingPostDocuments.delegation.templateId`; string, required)
    - minLength 1; maxLength 200
  - `templateVersion` (`signingPostDocuments.delegation.templateVersion`; integer, required)
    - min 0; max 9007199254740991
- `placement` (`signingPostDocuments.placement`; string, optional)
  - one of `"page"`, `"tags"`, `"fields"`
- `fields` (`signingPostDocuments.fields`; array<object>, optional)
  - `id` (`signingPostDocuments.fields.id`; string, required)
    - minLength 1; maxLength 100
  - `kind` (`signingPostDocuments.fields.kind`; string, required)
    - one of `"signature"`, `"initials"`, `"date"`, `"text"`, `"checkbox"`, `"dropdown"`, `"dateInput"`, `"name"`, `"email"`
  - `slot` (`signingPostDocuments.fields.slot`; integer, required)
    - min 1; max 50
  - `page` (`signingPostDocuments.fields.page`; integer, required)
    - min 1; max 1000
  - `x` (`signingPostDocuments.fields.x`; number, required)
    - min 0; max 1
  - `y` (`signingPostDocuments.fields.y`; number, required)
    - min 0; max 1
  - `width` (`signingPostDocuments.fields.width`; number, required)
    - min 0; max 1
  - `height` (`signingPostDocuments.fields.height`; number, required)
    - min 0; max 1
  - `label` (`signingPostDocuments.fields.label`; string, optional)
    - maxLength 200
  - `required` (`signingPostDocuments.fields.required`; boolean, optional)
  - `options` (`signingPostDocuments.fields.options`; array<string>, optional)
    - minLength 1; maxLength 200
  - `maxLength` (`signingPostDocuments.fields.maxLength`; integer, optional)
    - min 1; max 5000
  - `defaultValue` (`signingPostDocuments.fields.defaultValue`; any of, optional)
    - any of: `string`, `boolean`
  - `attachmentId` (`signingPostDocuments.fields.attachmentId`; string, optional)
    - maxLength 100
  - `localPage` (`signingPostDocuments.fields.localPage`; integer, optional)
    - min 0; max 9007199254740991
  - `fontSize` (`signingPostDocuments.fields.fontSize`; number, optional) — The text size in points, from 6 to 72. Applies to fields that print text. When absent, the text is 12 points or less, to fit the field height. A value that does not fit the field shrinks to fit.
    - min 6; max 72
- `preparationReviewed` (`signingPostDocuments.preparationReviewed`; boolean, optional)
- `cc` (`signingPostDocuments.cc`; array<object>, optional)
  - `name` (`signingPostDocuments.cc.name`; string, required)
    - minLength 1; maxLength 200
  - `email` (`signingPostDocuments.cc.email`; string, required)
    - format `email`; maxLength 254; pattern `^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`
- `language` (`signingPostDocuments.language`; string, optional)
  - one of `"en"`, `"fr"`
- `expiresInDays` (`signingPostDocuments.expiresInDays`; number, optional)
- `reminders` (`signingPostDocuments.reminders`; object, optional)
  - `enabled` (`signingPostDocuments.reminders.enabled`; boolean, required)
  - `firstAfterDays` (`signingPostDocuments.reminders.firstAfterDays`; number, required)
  - `repeatEveryDays` (`signingPostDocuments.reminders.repeatEveryDays`; number, required)
  - `expiresBeforeDays` (`signingPostDocuments.reminders.expiresBeforeDays`; integer, optional)
    - min 1; max 30
- `allowReassignment` (`signingPostDocuments.allowReassignment`; boolean, optional)
- `notifications` (`signingPostDocuments.notifications`; object, optional)
  - `sender` (`signingPostDocuments.notifications.sender`; object, optional, nullable) — An email goes to this address when a recipient signs or declines, and when the document is completed. `null` removes it. When absent on a document made in the app, the owner gets the emails.
    - `email` (`signingPostDocuments.notifications.sender.email`; string, required) — The address that gets the progress emails.
      - format `email`; maxLength 254; pattern `^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`
    - `language` (`signingPostDocuments.notifications.sender.language`; string, optional) — The language of the progress emails. When absent, the document language.
      - one of `"en"`, `"fr"`
- `branding` (`signingPostDocuments.branding`; object, optional, nullable)
  - `name` (`signingPostDocuments.branding.name`; string, required)
    - minLength 1; maxLength 100
  - `accentColor` (`signingPostDocuments.branding.accentColor`; string, required)
    - pattern `^#[0-9a-fA-F]{6}$`
- `brandingId` (`signingPostDocuments.brandingId`; string, optional, nullable)
  - minLength 1; maxLength 200
- `variables` (`signingPostDocuments.variables`; map<SigningJsonValue>, optional)
- `version` (`signingPostDocuments.version`; integer, optional)
  - min 0; max 9007199254740991
- `stages` (`signingPostDocuments.stages`; array<object>, optional)
  - `id` (`signingPostDocuments.stages.id`; string, required)
    - minLength 1; maxLength 100
  - `mode` (`signingPostDocuments.stages.mode`; string, required)
    - one of `"all"`, `"any"`
  - `recipients` (`signingPostDocuments.stages.recipients`; array<object>, required)
    - `id` (`signingPostDocuments.stages.recipients.id`; string, required)
      - minLength 1; maxLength 100
    - `name` (`signingPostDocuments.stages.recipients.name`; string, required)
      - maxLength 200
    - `email` (`signingPostDocuments.stages.recipients.email`; string, required)
      - maxLength 254
    - `phone` (`signingPostDocuments.stages.recipients.phone`; string, optional) — The recipient phone number. Drafts can keep an incomplete number. SMS verification requires an E.164 number before sending.
      - maxLength 32
    - `status` (`signingPostDocuments.stages.recipients.status`; string, optional)
      - one of `"pending"`, `"awaiting_consent"`, `"signed"`, `"approved"`, `"declined"`, `"skipped"`
    - `signedAt` (`signingPostDocuments.stages.recipients.signedAt`; string, optional)
    - `typedName` (`signingPostDocuments.stages.recipients.typedName`; string, optional)
    - `locked` (`signingPostDocuments.stages.recipients.locked`; boolean, optional) — True when the template of this document sets this recipient. The server ignores this value on input: only the template can set or change a locked recipient.
    - `phoneLocked` (`signingPostDocuments.stages.recipients.phoneLocked`; boolean, optional) — True when the template also sets the phone number of a locked recipient. The server ignores this value on input. When false, the sender can add or change the phone number.
  - `role` (`signingPostDocuments.stages.role`; string, optional)
    - one of `"signer"`, `"approver"`
  - `delayHours` (`signingPostDocuments.stages.delayHours`; number, optional)
    - min 0; max 2160
  - `condition` (`signingPostDocuments.stages.condition`; object, optional)
    - `variable` (`signingPostDocuments.stages.condition.variable`; string, required)
      - minLength 1; maxLength 100
    - `operator` (`signingPostDocuments.stages.condition.operator`; string, required)
      - one of `"equals"`, `"notEquals"`
    - `value` (`signingPostDocuments.stages.condition.value`; any of, required)
      - any of:
        - `string`
        - `number`
        - `boolean`
        - `string`: one of `null`
- `purpose` (`signingPostDocuments.purpose`; string, optional)
  - one of `"template"`

## Example request

```json
{
  "generatedText": "string",
  "generation": {
    "kind": "rich",
    "markdown": "string",
    "templateId": "string",
    "styleProfileId": "string",
    "rendererOptions": {
      "title": "string",
      "author": "string",
      "subject": "string",
      "pageSize": "a4",
      "fontSize": "string",
      "logo": {
        "url": "http://example.com",
        "svg": "string",
        "height": "string",
        "allPages": true,
        "position": "left"
      },
      "margins": {
        "otherPages": {
          "top": "string",
          "right": "string",
          "bottom": "string",
          "left": "string"
        },
        "firstPage": {
          "top": "string"
        }
      },
      "header": {
        "text": "string",
        "firstPage": "string",
        "lastPage": "string",
        "position": "left"
      },
      "pageNumbers": {
        "firstPage": true,
        "lastPage": true,
        "format": "string",
        "style": "1",
        "position": "left"
      },
      "colors": {
        "text": "string",
        "link": "string",
        "codeBackground": "string",
        "tableHeaderBackground": "string",
        "tableHeaderText": "string",
        "tableBorder": "string",
        "tableStripe": "string"
      },
      "fonts": {
        "body": "string",
        "h1": "string",
        "h2": "string",
        "h3": "string",
        "h4": "string",
        "tableHeader": "string",
        "code": "string"
      }
    },
    "values": {
      "property1": "string",
      "property2": "string"
    },
    "schema": {
      "property1": "string",
      "property2": "string"
    }
  },
  "title": "string",
  "teamId": "string",
  "privacy": "team",
  "message": "string",
  "signingMode": "manual",
  "verification": [
    {
      "method": "email"
    }
  ],
  "delegation": {
    "templateId": "string",
    "templateVersion": 0
  },
  "placement": "page",
  "fields": [
    {
      "id": "string",
      "kind": "signature",
      "slot": 1,
      "page": 1,
      "x": 1,
      "y": 1,
      "width": 0,
      "height": 0,
      "label": "string",
      "required": true,
      "options": [
        "string"
      ],
      "maxLength": 1,
      "defaultValue": "string",
      "attachmentId": "string",
      "localPage": 0,
      "fontSize": 6
    }
  ],
  "preparationReviewed": true,
  "cc": [
    {
      "name": "string",
      "email": "user@example.com"
    }
  ],
  "language": "en",
  "expiresInDays": 0,
  "reminders": {
    "enabled": true,
    "firstAfterDays": 0,
    "repeatEveryDays": 0,
    "expiresBeforeDays": 1
  },
  "allowReassignment": true,
  "notifications": {
    "sender": {
      "email": "user@example.com",
      "language": "en"
    }
  },
  "branding": {
    "name": "string",
    "accentColor": "string"
  },
  "brandingId": "string",
  "variables": {
    "property1": "string",
    "property2": "string"
  },
  "version": 9007199254740991,
  "stages": [
    {
      "id": "string",
      "mode": "all",
      "role": "signer",
      "delayHours": 2160,
      "condition": {
        "variable": "string",
        "operator": "equals",
        "value": "string"
      },
      "recipients": [
        {
          "id": "string",
          "name": "string",
          "phone": "string",
          "email": "string",
          "status": "pending",
          "signedAt": "string",
          "typedName": "string",
          "locked": true,
          "phoneLocked": true
        }
      ]
    }
  ],
  "purpose": "template"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.cloudraker.com/v1/signing/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "generatedText": "string",
  "generation": {
    "kind": "rich",
    "markdown": "string",
    "templateId": "string",
    "styleProfileId": "string",
    "rendererOptions": {
      "title": "string",
      "author": "string",
      "subject": "string",
      "pageSize": "a4",
      "fontSize": "string",
      "logo": {
        "url": "http://example.com",
        "svg": "string",
        "height": "string",
        "allPages": true,
        "position": "left"
      },
      "margins": {
        "otherPages": {
          "top": "string",
          "right": "string",
          "bottom": "string",
          "left": "string"
        },
        "firstPage": {
          "top": "string"
        }
      },
      "header": {
        "text": "string",
        "firstPage": "string",
        "lastPage": "string",
        "position": "left"
      },
      "pageNumbers": {
        "firstPage": true,
        "lastPage": true,
        "format": "string",
        "style": "1",
        "position": "left"
      },
      "colors": {
        "text": "string",
        "link": "string",
        "codeBackground": "string",
        "tableHeaderBackground": "string",
        "tableHeaderText": "string",
        "tableBorder": "string",
        "tableStripe": "string"
      },
      "fonts": {
        "body": "string",
        "h1": "string",
        "h2": "string",
        "h3": "string",
        "h4": "string",
        "tableHeader": "string",
        "code": "string"
      }
    },
    "values": {
      "property1": "string",
      "property2": "string"
    },
    "schema": {
      "property1": "string",
      "property2": "string"
    }
  },
  "title": "string",
  "teamId": "string",
  "privacy": "team",
  "message": "string",
  "signingMode": "manual",
  "verification": [
    {
      "method": "email"
    }
  ],
  "delegation": {
    "templateId": "string",
    "templateVersion": 0
  },
  "placement": "page",
  "fields": [
    {
      "id": "string",
      "kind": "signature",
      "slot": 1,
      "page": 1,
      "x": 1,
      "y": 1,
      "width": 0,
      "height": 0,
      "label": "string",
      "required": true,
      "options": [
        "string"
      ],
      "maxLength": 1,
      "defaultValue": "string",
      "attachmentId": "string",
      "localPage": 0,
      "fontSize": 6
    }
  ],
  "preparationReviewed": true,
  "cc": [
    {
      "name": "string",
      "email": "user@example.com"
    }
  ],
  "language": "en",
  "expiresInDays": 0,
  "reminders": {
    "enabled": true,
    "firstAfterDays": 0,
    "repeatEveryDays": 0,
    "expiresBeforeDays": 1
  },
  "allowReassignment": true,
  "notifications": {
    "sender": {
      "email": "user@example.com",
      "language": "en"
    }
  },
  "branding": {
    "name": "string",
    "accentColor": "string"
  },
  "brandingId": "string",
  "variables": {
    "property1": "string",
    "property2": "string"
  },
  "version": 9007199254740991,
  "stages": [
    {
      "id": "string",
      "mode": "all",
      "role": "signer",
      "delayHours": 2160,
      "condition": {
        "variable": "string",
        "operator": "equals",
        "value": "string"
      },
      "recipients": [
        {
          "id": "string",
          "name": "string",
          "phone": "string",
          "email": "string",
          "status": "pending",
          "signedAt": "string",
          "typedName": "string",
          "locked": true,
          "phoneLocked": true
        }
      ]
    }
  ],
  "purpose": "template"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/signing/documents';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    generatedText: 'string',
    generation: {
      kind: 'rich',
      markdown: 'string',
      templateId: 'string',
      styleProfileId: 'string',
      rendererOptions: {
        title: 'string',
        author: 'string',
        subject: 'string',
        pageSize: 'a4',
        fontSize: 'string',
        logo: {
          url: 'http://example.com',
          svg: 'string',
          height: 'string',
          allPages: true,
          position: 'left'
        },
        margins: {
          otherPages: {top: 'string', right: 'string', bottom: 'string', left: 'string'},
          firstPage: {top: 'string'}
        },
        header: {text: 'string', firstPage: 'string', lastPage: 'string', position: 'left'},
        pageNumbers: {
          firstPage: true,
          lastPage: true,
          format: 'string',
          style: '1',
          position: 'left'
        },
        colors: {
          text: 'string',
          link: 'string',
          codeBackground: 'string',
          tableHeaderBackground: 'string',
          tableHeaderText: 'string',
          tableBorder: 'string',
          tableStripe: 'string'
        },
        fonts: {
          body: 'string',
          h1: 'string',
          h2: 'string',
          h3: 'string',
          h4: 'string',
          tableHeader: 'string',
          code: 'string'
        }
      },
      values: {property1: 'string', property2: 'string'},
      schema: {property1: 'string', property2: 'string'}
    },
    title: 'string',
    teamId: 'string',
    privacy: 'team',
    message: 'string',
    signingMode: 'manual',
    verification: [{method: 'email'}],
    delegation: {templateId: 'string', templateVersion: 0},
    placement: 'page',
    fields: [
      {
        id: 'string',
        kind: 'signature',
        slot: 1,
        page: 1,
        x: 1,
        y: 1,
        width: 0,
        height: 0,
        label: 'string',
        required: true,
        options: ['string'],
        maxLength: 1,
        defaultValue: 'string',
        attachmentId: 'string',
        localPage: 0,
        fontSize: 6
      }
    ],
    preparationReviewed: true,
    cc: [{name: 'string', email: 'user@example.com'}],
    language: 'en',
    expiresInDays: 0,
    reminders: {enabled: true, firstAfterDays: 0, repeatEveryDays: 0, expiresBeforeDays: 1},
    allowReassignment: true,
    notifications: {sender: {email: 'user@example.com', language: 'en'}},
    branding: {name: 'string', accentColor: 'string'},
    brandingId: 'string',
    variables: {property1: 'string', property2: 'string'},
    version: 9007199254740991,
    stages: [
      {
        id: 'string',
        mode: 'all',
        role: 'signer',
        delayHours: 2160,
        condition: {variable: 'string', operator: 'equals', value: 'string'},
        recipients: [
          {
            id: 'string',
            name: 'string',
            phone: 'string',
            email: 'string',
            status: 'pending',
            signedAt: 'string',
            typedName: 'string',
            locked: true,
            phoneLocked: true
          }
        ]
      }
    ],
    purpose: 'template'
  })
};

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/signing/documents"

payload = {
    "generatedText": "string",
    "generation": {
        "kind": "rich",
        "markdown": "string",
        "templateId": "string",
        "styleProfileId": "string",
        "rendererOptions": {
            "title": "string",
            "author": "string",
            "subject": "string",
            "pageSize": "a4",
            "fontSize": "string",
            "logo": {
                "url": "http://example.com",
                "svg": "string",
                "height": "string",
                "allPages": True,
                "position": "left"
            },
            "margins": {
                "otherPages": {
                    "top": "string",
                    "right": "string",
                    "bottom": "string",
                    "left": "string"
                },
                "firstPage": { "top": "string" }
            },
            "header": {
                "text": "string",
                "firstPage": "string",
                "lastPage": "string",
                "position": "left"
            },
            "pageNumbers": {
                "firstPage": True,
                "lastPage": True,
                "format": "string",
                "style": "1",
                "position": "left"
            },
            "colors": {
                "text": "string",
                "link": "string",
                "codeBackground": "string",
                "tableHeaderBackground": "string",
                "tableHeaderText": "string",
                "tableBorder": "string",
                "tableStripe": "string"
            },
            "fonts": {
                "body": "string",
                "h1": "string",
                "h2": "string",
                "h3": "string",
                "h4": "string",
                "tableHeader": "string",
                "code": "string"
            }
        },
        "values": {
            "property1": "string",
            "property2": "string"
        },
        "schema": {
            "property1": "string",
            "property2": "string"
        }
    },
    "title": "string",
    "teamId": "string",
    "privacy": "team",
    "message": "string",
    "signingMode": "manual",
    "verification": [{ "method": "email" }],
    "delegation": {
        "templateId": "string",
        "templateVersion": 0
    },
    "placement": "page",
    "fields": [
        {
            "id": "string",
            "kind": "signature",
            "slot": 1,
            "page": 1,
            "x": 1,
            "y": 1,
            "width": 0,
            "height": 0,
            "label": "string",
            "required": True,
            "options": ["string"],
            "maxLength": 1,
            "defaultValue": "string",
            "attachmentId": "string",
            "localPage": 0,
            "fontSize": 6
        }
    ],
    "preparationReviewed": True,
    "cc": [
        {
            "name": "string",
            "email": "user@example.com"
        }
    ],
    "language": "en",
    "expiresInDays": 0,
    "reminders": {
        "enabled": True,
        "firstAfterDays": 0,
        "repeatEveryDays": 0,
        "expiresBeforeDays": 1
    },
    "allowReassignment": True,
    "notifications": { "sender": {
            "email": "user@example.com",
            "language": "en"
        } },
    "branding": {
        "name": "string",
        "accentColor": "string"
    },
    "brandingId": "string",
    "variables": {
        "property1": "string",
        "property2": "string"
    },
    "version": 9007199254740991,
    "stages": [
        {
            "id": "string",
            "mode": "all",
            "role": "signer",
            "delayHours": 2160,
            "condition": {
                "variable": "string",
                "operator": "equals",
                "value": "string"
            },
            "recipients": [
                {
                    "id": "string",
                    "name": "string",
                    "phone": "string",
                    "email": "string",
                    "status": "pending",
                    "signedAt": "string",
                    "typedName": "string",
                    "locked": True,
                    "phoneLocked": True
                }
            ]
        }
    ],
    "purpose": "template"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

An existing document for this idempotency key.

#### Example

```json
{
  "id": "string",
  "title": "string",
  "teamId": "string",
  "ownerId": "string",
  "privacy": "team",
  "status": "draft",
  "source": "app",
  "integrationId": "string",
  "integrationName": "string",
  "message": "string",
  "signingMode": "manual",
  "delegation": {
    "templateId": "string",
    "templateVersion": -9007199254740991
  },
  "templateOrigin": {
    "templateId": "string",
    "templateVersion": -9007199254740991,
    "templateName": "string"
  },
  "placement": "page",
  "stages": [
    {
      "id": "string",
      "mode": "all",
      "role": "signer",
      "delayHours": 0,
      "condition": {
        "property1": "string",
        "property2": "string"
      },
      "skipped": true,
      "recipients": [
        {
          "id": "string",
          "name": "string",
          "email": "string",
          "status": "pending",
          "locked": true,
          "phoneLocked": true,
          "delegationId": "string",
          "signedAt": "string",
          "typedName": "string",
          "viewedAt": "string",
          "approvedAt": "string",
          "declinedAt": "string",
          "declineReason": "string",
          "nextReminderAt": "string",
          "lastInvitedAt": "string",
          "deliveryError": "string",
          "version": -9007199254740991
        }
      ]
    }
  ],
  "fields": [
    {
      "id": "string",
      "kind": "signature",
      "slot": 1,
      "page": 1,
      "x": 1,
      "y": 1,
      "width": 1,
      "height": 1,
      "label": "string",
      "required": true,
      "options": [
        "string"
      ],
      "maxLength": 1,
      "defaultValue": "string",
      "attachmentId": "string",
      "localPage": 9007199254740991,
      "fontSize": 6
    }
  ],
  "attachments": [
    {
      "id": "string",
      "fileId": "string",
      "name": "string",
      "mimeType": "string",
      "pageCount": -9007199254740991,
      "startPage": -9007199254740991,
      "sha256": "string",
      "renditionSha256": "string"
    }
  ],
  "pageCount": -9007199254740991,
  "pages": [
    {
      "width": 0,
      "height": 0
    }
  ],
  "preparationReviewed": true,
  "contentNeedsRender": true,
  "cc": [
    {
      "name": "string",
      "email": "string"
    }
  ],
  "language": "en",
  "expiresInDays": 0,
  "expiresAt": "string",
  "reminders": {
    "enabled": true,
    "firstAfterDays": 0,
    "repeatEveryDays": 0,
    "expiresBeforeDays": 1
  },
  "allowReassignment": true,
  "notifications": {
    "sender": {
      "email": "string",
      "language": "en"
    }
  },
  "branding": {
    "name": "string",
    "accentColor": "string",
    "logoDataUrl": "string"
  },
  "variables": {
    "property1": "string",
    "property2": "string"
  },
  "brandingId": "string",
  "purpose": "template",
  "generation": {
    "property1": "string",
    "property2": "string"
  },
  "extraction": {
    "property1": "string",
    "property2": "string"
  },
  "postSign": {
    "property1": "string",
    "property2": "string"
  },
  "fileName": "string",
  "fileId": "string",
  "generatedText": "string",
  "runId": "string",
  "error": "string",
  "sending": true,
  "errorCode": "concurrent_envelope_limit",
  "limit": -9007199254740991,
  "createdAt": "string",
  "updatedAt": "string",
  "sentAt": "string",
  "completedAt": "string",
  "version": -9007199254740991,
  "activity": [
    {
      "id": "string",
      "at": "string",
      "text": "string"
    }
  ]
}
```

- `id` (`signingPostDocuments.response.200.id`; string, required)
- `title` (`signingPostDocuments.response.200.title`; string, required)
- `teamId` (`signingPostDocuments.response.200.teamId`; string | null, required)
- `ownerId` (`signingPostDocuments.response.200.ownerId`; string, required)
- `privacy` (`signingPostDocuments.response.200.privacy`; string, required)
  - one of `"team"`, `"participants"`
- `status` (`signingPostDocuments.response.200.status`; string, required)
  - one of `"draft"`, `"waiting"`, `"completed"`, `"cancelled"`, `"declined"`, `"expired"`, `"failed"`
- `message` (`signingPostDocuments.response.200.message`; string, required)
- `placement` (`signingPostDocuments.response.200.placement`; string, required)
  - one of `"page"`, `"tags"`, `"fields"`
- `stages` (`signingPostDocuments.response.200.stages`; array<object>, required)
  - `id` (`signingPostDocuments.response.200.stages.id`; string, required)
  - `mode` (`signingPostDocuments.response.200.stages.mode`; string, required)
    - one of `"all"`, `"any"`
  - `recipients` (`signingPostDocuments.response.200.stages.recipients`; array<object>, required)
    - `id` (`signingPostDocuments.response.200.stages.recipients.id`; string, required)
    - `name` (`signingPostDocuments.response.200.stages.recipients.name`; string, required)
    - `email` (`signingPostDocuments.response.200.stages.recipients.email`; string, required)
    - `status` (`signingPostDocuments.response.200.stages.recipients.status`; string, required)
      - one of `"pending"`, `"awaiting_consent"`, `"signed"`, `"approved"`, `"declined"`, `"skipped"`
    - `locked` (`signingPostDocuments.response.200.stages.recipients.locked`; boolean, optional) — True when the template of this document sets this recipient. Only the template can change or remove a locked recipient.
    - `phoneLocked` (`signingPostDocuments.response.200.stages.recipients.phoneLocked`; boolean, optional) — True when the template also sets the phone number of a locked recipient. When false, the sender can add or change the phone number.
    - `delegationId` (`signingPostDocuments.response.200.stages.recipients.delegationId`; string, optional)
    - `signedAt` (`signingPostDocuments.response.200.stages.recipients.signedAt`; string, optional)
    - `typedName` (`signingPostDocuments.response.200.stages.recipients.typedName`; string, optional)
    - `viewedAt` (`signingPostDocuments.response.200.stages.recipients.viewedAt`; string, optional)
    - `approvedAt` (`signingPostDocuments.response.200.stages.recipients.approvedAt`; string, optional)
    - `declinedAt` (`signingPostDocuments.response.200.stages.recipients.declinedAt`; string, optional)
    - `declineReason` (`signingPostDocuments.response.200.stages.recipients.declineReason`; string, optional)
    - `nextReminderAt` (`signingPostDocuments.response.200.stages.recipients.nextReminderAt`; string, optional)
    - `lastInvitedAt` (`signingPostDocuments.response.200.stages.recipients.lastInvitedAt`; string, optional)
    - `deliveryError` (`signingPostDocuments.response.200.stages.recipients.deliveryError`; string, optional)
    - `version` (`signingPostDocuments.response.200.stages.recipients.version`; integer, optional)
      - min -9007199254740991; max 9007199254740991
  - `role` (`signingPostDocuments.response.200.stages.role`; string, optional)
    - one of `"signer"`, `"approver"`
  - `delayHours` (`signingPostDocuments.response.200.stages.delayHours`; number, optional)
  - `condition` (`signingPostDocuments.response.200.stages.condition`; map<__schema0>, optional)
  - `skipped` (`signingPostDocuments.response.200.stages.skipped`; boolean, optional)
- `fields` (`signingPostDocuments.response.200.fields`; array<object>, required)
  - `id` (`signingPostDocuments.response.200.fields.id`; string, required)
    - minLength 1; maxLength 100
  - `kind` (`signingPostDocuments.response.200.fields.kind`; string, required)
    - one of `"signature"`, `"initials"`, `"date"`, `"text"`, `"checkbox"`, `"dropdown"`, `"dateInput"`, `"name"`, `"email"`
  - `slot` (`signingPostDocuments.response.200.fields.slot`; integer, required)
    - min 1; max 50
  - `page` (`signingPostDocuments.response.200.fields.page`; integer, required)
    - min 1; max 1000
  - `x` (`signingPostDocuments.response.200.fields.x`; number, required)
    - min 0; max 1
  - `y` (`signingPostDocuments.response.200.fields.y`; number, required)
    - min 0; max 1
  - `width` (`signingPostDocuments.response.200.fields.width`; number, required)
    - max 1
  - `height` (`signingPostDocuments.response.200.fields.height`; number, required)
    - max 1
  - `label` (`signingPostDocuments.response.200.fields.label`; string, optional)
    - maxLength 200
  - `required` (`signingPostDocuments.response.200.fields.required`; boolean, optional)
  - `options` (`signingPostDocuments.response.200.fields.options`; array<string>, optional)
    - minLength 1; maxLength 200
  - `maxLength` (`signingPostDocuments.response.200.fields.maxLength`; integer, optional)
    - min 1; max 5000
  - `defaultValue` (`signingPostDocuments.response.200.fields.defaultValue`; any of, optional)
    - any of: `string`, `boolean`
  - `attachmentId` (`signingPostDocuments.response.200.fields.attachmentId`; string, optional)
    - maxLength 100
  - `localPage` (`signingPostDocuments.response.200.fields.localPage`; integer, optional)
    - max 9007199254740991
  - `fontSize` (`signingPostDocuments.response.200.fields.fontSize`; number, optional) — The text size in points, from 6 to 72. Applies to fields that print text. When absent, the text is 12 points or less, to fit the field height. A value that does not fit the field shrinks to fit.
    - min 6; max 72
- `createdAt` (`signingPostDocuments.response.200.createdAt`; string, required)
- `updatedAt` (`signingPostDocuments.response.200.updatedAt`; string, required)
- `version` (`signingPostDocuments.response.200.version`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `activity` (`signingPostDocuments.response.200.activity`; array<object>, required)
  - `id` (`signingPostDocuments.response.200.activity.id`; string, required)
  - `at` (`signingPostDocuments.response.200.activity.at`; string, required)
  - `text` (`signingPostDocuments.response.200.activity.text`; string, required)
- `source` (`signingPostDocuments.response.200.source`; string, optional)
  - one of `"app"`, `"api"`, `"paperwork"`
- `integrationId` (`signingPostDocuments.response.200.integrationId`; string, optional)
- `integrationName` (`signingPostDocuments.response.200.integrationName`; string, optional)
- `signingMode` (`signingPostDocuments.response.200.signingMode`; string, optional)
  - one of `"manual"`, `"delegated"`
- `delegation` (`signingPostDocuments.response.200.delegation`; any of, optional)
  - any of:
    - `object`
      - `templateId` (`signingPostDocuments.response.200.delegation.1.templateId`; string, required)
      - `templateVersion` (`signingPostDocuments.response.200.delegation.1.templateVersion`; integer, required)
        - min -9007199254740991; max 9007199254740991
    - `null`
- `templateOrigin` (`signingPostDocuments.response.200.templateOrigin`; object, optional)
  - `templateId` (`signingPostDocuments.response.200.templateOrigin.templateId`; string, required)
  - `templateVersion` (`signingPostDocuments.response.200.templateOrigin.templateVersion`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `templateName` (`signingPostDocuments.response.200.templateOrigin.templateName`; string, required)
- `attachments` (`signingPostDocuments.response.200.attachments`; array<object>, optional)
  - `id` (`signingPostDocuments.response.200.attachments.id`; string, required)
  - `fileId` (`signingPostDocuments.response.200.attachments.fileId`; string, required)
  - `name` (`signingPostDocuments.response.200.attachments.name`; string, required)
  - `mimeType` (`signingPostDocuments.response.200.attachments.mimeType`; string, required)
  - `pageCount` (`signingPostDocuments.response.200.attachments.pageCount`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `startPage` (`signingPostDocuments.response.200.attachments.startPage`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `sha256` (`signingPostDocuments.response.200.attachments.sha256`; string, optional)
  - `renditionSha256` (`signingPostDocuments.response.200.attachments.renditionSha256`; string, optional)
- `pageCount` (`signingPostDocuments.response.200.pageCount`; integer, optional)
  - min -9007199254740991; max 9007199254740991
- `pages` (`signingPostDocuments.response.200.pages`; array<object>, optional)
  - `width` (`signingPostDocuments.response.200.pages.width`; number, required)
  - `height` (`signingPostDocuments.response.200.pages.height`; number, required)
- `preparationReviewed` (`signingPostDocuments.response.200.preparationReviewed`; boolean, optional)
- `contentNeedsRender` (`signingPostDocuments.response.200.contentNeedsRender`; boolean, optional)
- `cc` (`signingPostDocuments.response.200.cc`; array<object>, optional)
  - `name` (`signingPostDocuments.response.200.cc.name`; string, required)
  - `email` (`signingPostDocuments.response.200.cc.email`; string, required)
- `language` (`signingPostDocuments.response.200.language`; string, optional)
  - one of `"en"`, `"fr"`
- `expiresInDays` (`signingPostDocuments.response.200.expiresInDays`; number, optional)
- `expiresAt` (`signingPostDocuments.response.200.expiresAt`; string, optional)
- `reminders` (`signingPostDocuments.response.200.reminders`; object, optional)
  - `enabled` (`signingPostDocuments.response.200.reminders.enabled`; boolean, required)
  - `firstAfterDays` (`signingPostDocuments.response.200.reminders.firstAfterDays`; number, required)
  - `repeatEveryDays` (`signingPostDocuments.response.200.reminders.repeatEveryDays`; number, required)
  - `expiresBeforeDays` (`signingPostDocuments.response.200.reminders.expiresBeforeDays`; integer, optional)
    - min 1; max 30
- `allowReassignment` (`signingPostDocuments.response.200.allowReassignment`; boolean, optional)
- `notifications` (`signingPostDocuments.response.200.notifications`; object, optional) — Who gets the progress emails of this document.
  - `sender` (`signingPostDocuments.response.200.notifications.sender`; any of, optional)
    - any of:
      - `object`
        - `email` (`signingPostDocuments.response.200.notifications.sender.1.email`; string, required)
        - `language` (`signingPostDocuments.response.200.notifications.sender.1.language`; string, optional)
          - one of `"en"`, `"fr"`
      - `null`
- `branding` (`signingPostDocuments.response.200.branding`; any of, optional)
  - any of:
    - `object`
      - `name` (`signingPostDocuments.response.200.branding.1.name`; string, required)
      - `accentColor` (`signingPostDocuments.response.200.branding.1.accentColor`; string, required)
      - `logoDataUrl` (`signingPostDocuments.response.200.branding.1.logoDataUrl`; string, optional)
    - `null`
- `variables` (`signingPostDocuments.response.200.variables`; map<__schema0>, optional)
- `brandingId` (`signingPostDocuments.response.200.brandingId`; string | null, optional)
- `purpose` (`signingPostDocuments.response.200.purpose`; string, optional)
- `generation` (`signingPostDocuments.response.200.generation`; map<__schema0>, optional)
- `extraction` (`signingPostDocuments.response.200.extraction`; map<__schema0>, optional)
- `postSign` (`signingPostDocuments.response.200.postSign`; map<__schema0>, optional)
- `fileName` (`signingPostDocuments.response.200.fileName`; string, optional)
- `fileId` (`signingPostDocuments.response.200.fileId`; string, optional)
- `generatedText` (`signingPostDocuments.response.200.generatedText`; string, optional)
- `runId` (`signingPostDocuments.response.200.runId`; string, optional)
- `error` (`signingPostDocuments.response.200.error`; string, optional)
- `sending` (`signingPostDocuments.response.200.sending`; boolean, optional) — A send is underway or was interrupted. Edits answer 409 until it ends; POST /send again to finish it.
- `errorCode` (`signingPostDocuments.response.200.errorCode`; string, optional) — Set on a failed document when the plan limit of open signing requests stopped the send.
  - one of `"concurrent_envelope_limit"`
- `limit` (`signingPostDocuments.response.200.limit`; integer, optional) — With `errorCode`: the open signing request limit of the plan.
  - min -9007199254740991; max 9007199254740991
- `sentAt` (`signingPostDocuments.response.200.sentAt`; string, optional)
- `completedAt` (`signingPostDocuments.response.200.completedAt`; string, optional)

### 201

Authorized signing resource.

#### Example

```json
{
  "id": "string",
  "title": "string",
  "teamId": "string",
  "ownerId": "string",
  "privacy": "team",
  "status": "draft",
  "source": "app",
  "integrationId": "string",
  "integrationName": "string",
  "message": "string",
  "signingMode": "manual",
  "delegation": {
    "templateId": "string",
    "templateVersion": -9007199254740991
  },
  "templateOrigin": {
    "templateId": "string",
    "templateVersion": -9007199254740991,
    "templateName": "string"
  },
  "placement": "page",
  "stages": [
    {
      "id": "string",
      "mode": "all",
      "role": "signer",
      "delayHours": 0,
      "condition": {
        "property1": "string",
        "property2": "string"
      },
      "skipped": true,
      "recipients": [
        {
          "id": "string",
          "name": "string",
          "email": "string",
          "status": "pending",
          "locked": true,
          "phoneLocked": true,
          "delegationId": "string",
          "signedAt": "string",
          "typedName": "string",
          "viewedAt": "string",
          "approvedAt": "string",
          "declinedAt": "string",
          "declineReason": "string",
          "nextReminderAt": "string",
          "lastInvitedAt": "string",
          "deliveryError": "string",
          "version": -9007199254740991
        }
      ]
    }
  ],
  "fields": [
    {
      "id": "string",
      "kind": "signature",
      "slot": 1,
      "page": 1,
      "x": 1,
      "y": 1,
      "width": 1,
      "height": 1,
      "label": "string",
      "required": true,
      "options": [
        "string"
      ],
      "maxLength": 1,
      "defaultValue": "string",
      "attachmentId": "string",
      "localPage": 9007199254740991,
      "fontSize": 6
    }
  ],
  "attachments": [
    {
      "id": "string",
      "fileId": "string",
      "name": "string",
      "mimeType": "string",
      "pageCount": -9007199254740991,
      "startPage": -9007199254740991,
      "sha256": "string",
      "renditionSha256": "string"
    }
  ],
  "pageCount": -9007199254740991,
  "pages": [
    {
      "width": 0,
      "height": 0
    }
  ],
  "preparationReviewed": true,
  "contentNeedsRender": true,
  "cc": [
    {
      "name": "string",
      "email": "string"
    }
  ],
  "language": "en",
  "expiresInDays": 0,
  "expiresAt": "string",
  "reminders": {
    "enabled": true,
    "firstAfterDays": 0,
    "repeatEveryDays": 0,
    "expiresBeforeDays": 1
  },
  "allowReassignment": true,
  "notifications": {
    "sender": {
      "email": "string",
      "language": "en"
    }
  },
  "branding": {
    "name": "string",
    "accentColor": "string",
    "logoDataUrl": "string"
  },
  "variables": {
    "property1": "string",
    "property2": "string"
  },
  "brandingId": "string",
  "purpose": "template",
  "generation": {
    "property1": "string",
    "property2": "string"
  },
  "extraction": {
    "property1": "string",
    "property2": "string"
  },
  "postSign": {
    "property1": "string",
    "property2": "string"
  },
  "fileName": "string",
  "fileId": "string",
  "generatedText": "string",
  "runId": "string",
  "error": "string",
  "sending": true,
  "errorCode": "concurrent_envelope_limit",
  "limit": -9007199254740991,
  "createdAt": "string",
  "updatedAt": "string",
  "sentAt": "string",
  "completedAt": "string",
  "version": -9007199254740991,
  "activity": [
    {
      "id": "string",
      "at": "string",
      "text": "string"
    }
  ]
}
```

- `id` (`signingPostDocuments.response.201.id`; string, required)
- `title` (`signingPostDocuments.response.201.title`; string, required)
- `teamId` (`signingPostDocuments.response.201.teamId`; string | null, required)
- `ownerId` (`signingPostDocuments.response.201.ownerId`; string, required)
- `privacy` (`signingPostDocuments.response.201.privacy`; string, required)
  - one of `"team"`, `"participants"`
- `status` (`signingPostDocuments.response.201.status`; string, required)
  - one of `"draft"`, `"waiting"`, `"completed"`, `"cancelled"`, `"declined"`, `"expired"`, `"failed"`
- `message` (`signingPostDocuments.response.201.message`; string, required)
- `placement` (`signingPostDocuments.response.201.placement`; string, required)
  - one of `"page"`, `"tags"`, `"fields"`
- `stages` (`signingPostDocuments.response.201.stages`; array<object>, required)
  - `id` (`signingPostDocuments.response.201.stages.id`; string, required)
  - `mode` (`signingPostDocuments.response.201.stages.mode`; string, required)
    - one of `"all"`, `"any"`
  - `recipients` (`signingPostDocuments.response.201.stages.recipients`; array<object>, required)
    - `id` (`signingPostDocuments.response.201.stages.recipients.id`; string, required)
    - `name` (`signingPostDocuments.response.201.stages.recipients.name`; string, required)
    - `email` (`signingPostDocuments.response.201.stages.recipients.email`; string, required)
    - `status` (`signingPostDocuments.response.201.stages.recipients.status`; string, required)
      - one of `"pending"`, `"awaiting_consent"`, `"signed"`, `"approved"`, `"declined"`, `"skipped"`
    - `locked` (`signingPostDocuments.response.201.stages.recipients.locked`; boolean, optional) — True when the template of this document sets this recipient. Only the template can change or remove a locked recipient.
    - `phoneLocked` (`signingPostDocuments.response.201.stages.recipients.phoneLocked`; boolean, optional) — True when the template also sets the phone number of a locked recipient. When false, the sender can add or change the phone number.
    - `delegationId` (`signingPostDocuments.response.201.stages.recipients.delegationId`; string, optional)
    - `signedAt` (`signingPostDocuments.response.201.stages.recipients.signedAt`; string, optional)
    - `typedName` (`signingPostDocuments.response.201.stages.recipients.typedName`; string, optional)
    - `viewedAt` (`signingPostDocuments.response.201.stages.recipients.viewedAt`; string, optional)
    - `approvedAt` (`signingPostDocuments.response.201.stages.recipients.approvedAt`; string, optional)
    - `declinedAt` (`signingPostDocuments.response.201.stages.recipients.declinedAt`; string, optional)
    - `declineReason` (`signingPostDocuments.response.201.stages.recipients.declineReason`; string, optional)
    - `nextReminderAt` (`signingPostDocuments.response.201.stages.recipients.nextReminderAt`; string, optional)
    - `lastInvitedAt` (`signingPostDocuments.response.201.stages.recipients.lastInvitedAt`; string, optional)
    - `deliveryError` (`signingPostDocuments.response.201.stages.recipients.deliveryError`; string, optional)
    - `version` (`signingPostDocuments.response.201.stages.recipients.version`; integer, optional)
      - min -9007199254740991; max 9007199254740991
  - `role` (`signingPostDocuments.response.201.stages.role`; string, optional)
    - one of `"signer"`, `"approver"`
  - `delayHours` (`signingPostDocuments.response.201.stages.delayHours`; number, optional)
  - `condition` (`signingPostDocuments.response.201.stages.condition`; map<__schema0>, optional)
  - `skipped` (`signingPostDocuments.response.201.stages.skipped`; boolean, optional)
- `fields` (`signingPostDocuments.response.201.fields`; array<object>, required)
  - `id` (`signingPostDocuments.response.201.fields.id`; string, required)
    - minLength 1; maxLength 100
  - `kind` (`signingPostDocuments.response.201.fields.kind`; string, required)
    - one of `"signature"`, `"initials"`, `"date"`, `"text"`, `"checkbox"`, `"dropdown"`, `"dateInput"`, `"name"`, `"email"`
  - `slot` (`signingPostDocuments.response.201.fields.slot`; integer, required)
    - min 1; max 50
  - `page` (`signingPostDocuments.response.201.fields.page`; integer, required)
    - min 1; max 1000
  - `x` (`signingPostDocuments.response.201.fields.x`; number, required)
    - min 0; max 1
  - `y` (`signingPostDocuments.response.201.fields.y`; number, required)
    - min 0; max 1
  - `width` (`signingPostDocuments.response.201.fields.width`; number, required)
    - max 1
  - `height` (`signingPostDocuments.response.201.fields.height`; number, required)
    - max 1
  - `label` (`signingPostDocuments.response.201.fields.label`; string, optional)
    - maxLength 200
  - `required` (`signingPostDocuments.response.201.fields.required`; boolean, optional)
  - `options` (`signingPostDocuments.response.201.fields.options`; array<string>, optional)
    - minLength 1; maxLength 200
  - `maxLength` (`signingPostDocuments.response.201.fields.maxLength`; integer, optional)
    - min 1; max 5000
  - `defaultValue` (`signingPostDocuments.response.201.fields.defaultValue`; any of, optional)
    - any of: `string`, `boolean`
  - `attachmentId` (`signingPostDocuments.response.201.fields.attachmentId`; string, optional)
    - maxLength 100
  - `localPage` (`signingPostDocuments.response.201.fields.localPage`; integer, optional)
    - max 9007199254740991
  - `fontSize` (`signingPostDocuments.response.201.fields.fontSize`; number, optional) — The text size in points, from 6 to 72. Applies to fields that print text. When absent, the text is 12 points or less, to fit the field height. A value that does not fit the field shrinks to fit.
    - min 6; max 72
- `createdAt` (`signingPostDocuments.response.201.createdAt`; string, required)
- `updatedAt` (`signingPostDocuments.response.201.updatedAt`; string, required)
- `version` (`signingPostDocuments.response.201.version`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `activity` (`signingPostDocuments.response.201.activity`; array<object>, required)
  - `id` (`signingPostDocuments.response.201.activity.id`; string, required)
  - `at` (`signingPostDocuments.response.201.activity.at`; string, required)
  - `text` (`signingPostDocuments.response.201.activity.text`; string, required)
- `source` (`signingPostDocuments.response.201.source`; string, optional)
  - one of `"app"`, `"api"`, `"paperwork"`
- `integrationId` (`signingPostDocuments.response.201.integrationId`; string, optional)
- `integrationName` (`signingPostDocuments.response.201.integrationName`; string, optional)
- `signingMode` (`signingPostDocuments.response.201.signingMode`; string, optional)
  - one of `"manual"`, `"delegated"`
- `delegation` (`signingPostDocuments.response.201.delegation`; any of, optional)
  - any of:
    - `object`
      - `templateId` (`signingPostDocuments.response.201.delegation.1.templateId`; string, required)
      - `templateVersion` (`signingPostDocuments.response.201.delegation.1.templateVersion`; integer, required)
        - min -9007199254740991; max 9007199254740991
    - `null`
- `templateOrigin` (`signingPostDocuments.response.201.templateOrigin`; object, optional)
  - `templateId` (`signingPostDocuments.response.201.templateOrigin.templateId`; string, required)
  - `templateVersion` (`signingPostDocuments.response.201.templateOrigin.templateVersion`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `templateName` (`signingPostDocuments.response.201.templateOrigin.templateName`; string, required)
- `attachments` (`signingPostDocuments.response.201.attachments`; array<object>, optional)
  - `id` (`signingPostDocuments.response.201.attachments.id`; string, required)
  - `fileId` (`signingPostDocuments.response.201.attachments.fileId`; string, required)
  - `name` (`signingPostDocuments.response.201.attachments.name`; string, required)
  - `mimeType` (`signingPostDocuments.response.201.attachments.mimeType`; string, required)
  - `pageCount` (`signingPostDocuments.response.201.attachments.pageCount`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `startPage` (`signingPostDocuments.response.201.attachments.startPage`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `sha256` (`signingPostDocuments.response.201.attachments.sha256`; string, optional)
  - `renditionSha256` (`signingPostDocuments.response.201.attachments.renditionSha256`; string, optional)
- `pageCount` (`signingPostDocuments.response.201.pageCount`; integer, optional)
  - min -9007199254740991; max 9007199254740991
- `pages` (`signingPostDocuments.response.201.pages`; array<object>, optional)
  - `width` (`signingPostDocuments.response.201.pages.width`; number, required)
  - `height` (`signingPostDocuments.response.201.pages.height`; number, required)
- `preparationReviewed` (`signingPostDocuments.response.201.preparationReviewed`; boolean, optional)
- `contentNeedsRender` (`signingPostDocuments.response.201.contentNeedsRender`; boolean, optional)
- `cc` (`signingPostDocuments.response.201.cc`; array<object>, optional)
  - `name` (`signingPostDocuments.response.201.cc.name`; string, required)
  - `email` (`signingPostDocuments.response.201.cc.email`; string, required)
- `language` (`signingPostDocuments.response.201.language`; string, optional)
  - one of `"en"`, `"fr"`
- `expiresInDays` (`signingPostDocuments.response.201.expiresInDays`; number, optional)
- `expiresAt` (`signingPostDocuments.response.201.expiresAt`; string, optional)
- `reminders` (`signingPostDocuments.response.201.reminders`; object, optional)
  - `enabled` (`signingPostDocuments.response.201.reminders.enabled`; boolean, required)
  - `firstAfterDays` (`signingPostDocuments.response.201.reminders.firstAfterDays`; number, required)
  - `repeatEveryDays` (`signingPostDocuments.response.201.reminders.repeatEveryDays`; number, required)
  - `expiresBeforeDays` (`signingPostDocuments.response.201.reminders.expiresBeforeDays`; integer, optional)
    - min 1; max 30
- `allowReassignment` (`signingPostDocuments.response.201.allowReassignment`; boolean, optional)
- `notifications` (`signingPostDocuments.response.201.notifications`; object, optional) — Who gets the progress emails of this document.
  - `sender` (`signingPostDocuments.response.201.notifications.sender`; any of, optional)
    - any of:
      - `object`
        - `email` (`signingPostDocuments.response.201.notifications.sender.1.email`; string, required)
        - `language` (`signingPostDocuments.response.201.notifications.sender.1.language`; string, optional)
          - one of `"en"`, `"fr"`
      - `null`
- `branding` (`signingPostDocuments.response.201.branding`; any of, optional)
  - any of:
    - `object`
      - `name` (`signingPostDocuments.response.201.branding.1.name`; string, required)
      - `accentColor` (`signingPostDocuments.response.201.branding.1.accentColor`; string, required)
      - `logoDataUrl` (`signingPostDocuments.response.201.branding.1.logoDataUrl`; string, optional)
    - `null`
- `variables` (`signingPostDocuments.response.201.variables`; map<__schema0>, optional)
- `brandingId` (`signingPostDocuments.response.201.brandingId`; string | null, optional)
- `purpose` (`signingPostDocuments.response.201.purpose`; string, optional)
- `generation` (`signingPostDocuments.response.201.generation`; map<__schema0>, optional)
- `extraction` (`signingPostDocuments.response.201.extraction`; map<__schema0>, optional)
- `postSign` (`signingPostDocuments.response.201.postSign`; map<__schema0>, optional)
- `fileName` (`signingPostDocuments.response.201.fileName`; string, optional)
- `fileId` (`signingPostDocuments.response.201.fileId`; string, optional)
- `generatedText` (`signingPostDocuments.response.201.generatedText`; string, optional)
- `runId` (`signingPostDocuments.response.201.runId`; string, optional)
- `error` (`signingPostDocuments.response.201.error`; string, optional)
- `sending` (`signingPostDocuments.response.201.sending`; boolean, optional) — A send is underway or was interrupted. Edits answer 409 until it ends; POST /send again to finish it.
- `errorCode` (`signingPostDocuments.response.201.errorCode`; string, optional) — Set on a failed document when the plan limit of open signing requests stopped the send.
  - one of `"concurrent_envelope_limit"`
- `limit` (`signingPostDocuments.response.201.limit`; integer, optional) — With `errorCode`: the open signing request limit of the plan.
  - min -9007199254740991; max 9007199254740991
- `sentAt` (`signingPostDocuments.response.201.sentAt`; string, optional)
- `completedAt` (`signingPostDocuments.response.201.completedAt`; string, optional)

### 400

The request could not complete.

#### Example

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

- `code` (`signingPostDocuments.response.400.code`; string, required)
- `message` (`signingPostDocuments.response.400.message`; string, required)
- `retryable` (`signingPostDocuments.response.400.retryable`; boolean, required)
- `requestId` (`signingPostDocuments.response.400.requestId`; string, required)
- `docUrl` (`signingPostDocuments.response.400.docUrl`; string, optional)

### 401

The request could not complete.

#### Example

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

- `code` (`signingPostDocuments.response.401.code`; string, required)
- `message` (`signingPostDocuments.response.401.message`; string, required)
- `retryable` (`signingPostDocuments.response.401.retryable`; boolean, required)
- `requestId` (`signingPostDocuments.response.401.requestId`; string, required)
- `docUrl` (`signingPostDocuments.response.401.docUrl`; string, optional)

### 403

The request could not complete.

#### Example

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

- `code` (`signingPostDocuments.response.403.code`; string, required)
- `message` (`signingPostDocuments.response.403.message`; string, required)
- `retryable` (`signingPostDocuments.response.403.retryable`; boolean, required)
- `requestId` (`signingPostDocuments.response.403.requestId`; string, required)
- `docUrl` (`signingPostDocuments.response.403.docUrl`; string, optional)

### 404

The request could not complete.

#### Example

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

- `code` (`signingPostDocuments.response.404.code`; string, required)
- `message` (`signingPostDocuments.response.404.message`; string, required)
- `retryable` (`signingPostDocuments.response.404.retryable`; boolean, required)
- `requestId` (`signingPostDocuments.response.404.requestId`; string, required)
- `docUrl` (`signingPostDocuments.response.404.docUrl`; string, optional)

### 409

The request could not complete.

#### Example

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

- `code` (`signingPostDocuments.response.409.code`; string, required)
- `message` (`signingPostDocuments.response.409.message`; string, required)
- `retryable` (`signingPostDocuments.response.409.retryable`; boolean, required)
- `requestId` (`signingPostDocuments.response.409.requestId`; string, required)
- `docUrl` (`signingPostDocuments.response.409.docUrl`; string, optional)

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

### 503

The request could not complete.

#### Example

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

- `code` (`signingPostDocuments.response.503.code`; string, required)
- `message` (`signingPostDocuments.response.503.message`; string, required)
- `retryable` (`signingPostDocuments.response.503.retryable`; boolean, required)
- `requestId` (`signingPostDocuments.response.503.requestId`; string, required)
- `docUrl` (`signingPostDocuments.response.503.docUrl`; string, optional)


Source: https://docs.cloudraker.com/rakesign/api/rake-sign/signing-post-documents/index.md
