---
title: "Post documents by ID generate-rich"
---

> 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 by ID generate-rich

Path: CloudRaker RakeSign API › RakeSign

`POST /v1/signing/documents/{id}/generate-rich`

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`

## Path parameters

- `id` (`signingPostDocumentsByIdGenerateRich.path.id`; string, required)

## Request body

_Required._

- `kind` (`signingPostDocumentsByIdGenerateRich.kind`; string, required)
  - one of `"rich"`, `"compose"`, `"docx"`
- `version` (`signingPostDocumentsByIdGenerateRich.version`; integer, optional)
  - min 0; max 9007199254740991
- `markdown` (`signingPostDocumentsByIdGenerateRich.markdown`; string, optional)
  - maxLength 50000
- `templateId` (`signingPostDocumentsByIdGenerateRich.templateId`; string, optional)
  - minLength 1; maxLength 200
- `styleProfileId` (`signingPostDocumentsByIdGenerateRich.styleProfileId`; string, optional)
  - minLength 1; maxLength 200
- `rendererOptions` (`signingPostDocumentsByIdGenerateRich.rendererOptions`; object, optional)
  - `title` (`signingPostDocumentsByIdGenerateRich.rendererOptions.title`; string, optional)
    - maxLength 300
  - `author` (`signingPostDocumentsByIdGenerateRich.rendererOptions.author`; string, optional)
    - maxLength 300
  - `subject` (`signingPostDocumentsByIdGenerateRich.rendererOptions.subject`; string, optional)
    - maxLength 1000
  - `pageSize` (`signingPostDocumentsByIdGenerateRich.rendererOptions.pageSize`; string, optional)
    - one of `"a4"`, `"us-letter"`, `"a5"`, `"us-legal"`
  - `fontSize` (`signingPostDocumentsByIdGenerateRich.rendererOptions.fontSize`; string, optional)
    - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
  - `logo` (`signingPostDocumentsByIdGenerateRich.rendererOptions.logo`; object, optional)
    - `url` (`signingPostDocumentsByIdGenerateRich.rendererOptions.logo.url`; string, optional)
      - format `uri`; maxLength 2048
    - `svg` (`signingPostDocumentsByIdGenerateRich.rendererOptions.logo.svg`; string, optional)
      - maxLength 262144
    - `height` (`signingPostDocumentsByIdGenerateRich.rendererOptions.logo.height`; string, optional)
      - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
    - `allPages` (`signingPostDocumentsByIdGenerateRich.rendererOptions.logo.allPages`; boolean, optional)
    - `position` (`signingPostDocumentsByIdGenerateRich.rendererOptions.logo.position`; string, optional)
      - one of `"left"`, `"center"`, `"right"`
  - `margins` (`signingPostDocumentsByIdGenerateRich.rendererOptions.margins`; object, optional)
    - `otherPages` (`signingPostDocumentsByIdGenerateRich.rendererOptions.margins.otherPages`; object, optional)
      - `top` (`signingPostDocumentsByIdGenerateRich.rendererOptions.margins.otherPages.top`; string, optional)
        - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
      - `right` (`signingPostDocumentsByIdGenerateRich.rendererOptions.margins.otherPages.right`; string, optional)
        - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
      - `bottom` (`signingPostDocumentsByIdGenerateRich.rendererOptions.margins.otherPages.bottom`; string, optional)
        - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
      - `left` (`signingPostDocumentsByIdGenerateRich.rendererOptions.margins.otherPages.left`; string, optional)
        - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
    - `firstPage` (`signingPostDocumentsByIdGenerateRich.rendererOptions.margins.firstPage`; object, optional)
      - `top` (`signingPostDocumentsByIdGenerateRich.rendererOptions.margins.firstPage.top`; string, optional)
        - pattern `^\d{1,3}(\.\d{1,3})?(pt|mm|cm|in)$`
  - `header` (`signingPostDocumentsByIdGenerateRich.rendererOptions.header`; object, optional)
    - `text` (`signingPostDocumentsByIdGenerateRich.rendererOptions.header.text`; string, optional)
      - maxLength 200
    - `firstPage` (`signingPostDocumentsByIdGenerateRich.rendererOptions.header.firstPage`; string, optional)
      - maxLength 200
    - `lastPage` (`signingPostDocumentsByIdGenerateRich.rendererOptions.header.lastPage`; string, optional)
      - maxLength 200
    - `position` (`signingPostDocumentsByIdGenerateRich.rendererOptions.header.position`; string, optional)
      - one of `"left"`, `"center"`, `"right"`
  - `pageNumbers` (`signingPostDocumentsByIdGenerateRich.rendererOptions.pageNumbers`; object, optional)
    - `firstPage` (`signingPostDocumentsByIdGenerateRich.rendererOptions.pageNumbers.firstPage`; boolean, optional)
    - `lastPage` (`signingPostDocumentsByIdGenerateRich.rendererOptions.pageNumbers.lastPage`; boolean, optional)
    - `format` (`signingPostDocumentsByIdGenerateRich.rendererOptions.pageNumbers.format`; string, optional)
      - maxLength 60
    - `style` (`signingPostDocumentsByIdGenerateRich.rendererOptions.pageNumbers.style`; string, optional)
      - one of `"1"`, `"i"`, `"I"`, `"a"`, `"A"`
    - `position` (`signingPostDocumentsByIdGenerateRich.rendererOptions.pageNumbers.position`; string, optional)
      - one of `"left"`, `"center"`, `"right"`
  - `colors` (`signingPostDocumentsByIdGenerateRich.rendererOptions.colors`; object, optional)
    - `text` (`signingPostDocumentsByIdGenerateRich.rendererOptions.colors.text`; string, optional)
      - pattern `^#[0-9a-fA-F]{6}$`
    - `link` (`signingPostDocumentsByIdGenerateRich.rendererOptions.colors.link`; string, optional, nullable)
      - pattern `^#[0-9a-fA-F]{6}$`
    - `codeBackground` (`signingPostDocumentsByIdGenerateRich.rendererOptions.colors.codeBackground`; string, optional, nullable)
      - pattern `^#[0-9a-fA-F]{6}$`
    - `tableHeaderBackground` (`signingPostDocumentsByIdGenerateRich.rendererOptions.colors.tableHeaderBackground`; string, optional, nullable)
      - pattern `^#[0-9a-fA-F]{6}$`
    - `tableHeaderText` (`signingPostDocumentsByIdGenerateRich.rendererOptions.colors.tableHeaderText`; string, optional, nullable)
      - pattern `^#[0-9a-fA-F]{6}$`
    - `tableBorder` (`signingPostDocumentsByIdGenerateRich.rendererOptions.colors.tableBorder`; string, optional, nullable)
      - pattern `^#[0-9a-fA-F]{6}$`
    - `tableStripe` (`signingPostDocumentsByIdGenerateRich.rendererOptions.colors.tableStripe`; string, optional, nullable)
      - pattern `^#[0-9a-fA-F]{6}$`
  - `fonts` (`signingPostDocumentsByIdGenerateRich.rendererOptions.fonts`; object, optional)
    - `body` (`signingPostDocumentsByIdGenerateRich.rendererOptions.fonts.body`; string, optional)
      - pattern `^[A-Za-z0-9 ]{2,60}$`
    - `h1` (`signingPostDocumentsByIdGenerateRich.rendererOptions.fonts.h1`; string, optional)
      - pattern `^[A-Za-z0-9 ]{2,60}$`
    - `h2` (`signingPostDocumentsByIdGenerateRich.rendererOptions.fonts.h2`; string, optional)
      - pattern `^[A-Za-z0-9 ]{2,60}$`
    - `h3` (`signingPostDocumentsByIdGenerateRich.rendererOptions.fonts.h3`; string, optional)
      - pattern `^[A-Za-z0-9 ]{2,60}$`
    - `h4` (`signingPostDocumentsByIdGenerateRich.rendererOptions.fonts.h4`; string, optional)
      - pattern `^[A-Za-z0-9 ]{2,60}$`
    - `tableHeader` (`signingPostDocumentsByIdGenerateRich.rendererOptions.fonts.tableHeader`; string, optional)
      - pattern `^[A-Za-z0-9 ]{2,60}$`
    - `code` (`signingPostDocumentsByIdGenerateRich.rendererOptions.fonts.code`; string, optional)
      - pattern `^[A-Za-z0-9 ]{2,60}$`
- `preview` (`signingPostDocumentsByIdGenerateRich.preview`; boolean, optional)
- `values` (`signingPostDocumentsByIdGenerateRich.values`; map<unknown>, optional)
  - default `{}`
- `schema` (`signingPostDocumentsByIdGenerateRich.schema`; map<unknown>, optional)

## Example request

```json
{
  "version": 0,
  "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"
    }
  },
  "preview": true,
  "values": {},
  "schema": {
    "property1": null,
    "property2": null
  }
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/v1/signing/documents/<id>/generate-rich' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "version": 0,
  "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"
    }
  },
  "preview": true,
  "values": {},
  "schema": {
    "property1": null,
    "property2": null
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/signing/documents/<id>/generate-rich';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    version: 0,
    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'
      }
    },
    preview: true,
    values: {},
    schema: {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/signing/documents/<id>/generate-rich"

payload = {
    "version": 0,
    "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"
        }
    },
    "preview": True,
    "values": {},
    "schema": {
        "property1": None,
        "property2": None
    }
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

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` (`signingPostDocumentsByIdGenerateRich.response.200.id`; string, required)
- `title` (`signingPostDocumentsByIdGenerateRich.response.200.title`; string, required)
- `teamId` (`signingPostDocumentsByIdGenerateRich.response.200.teamId`; string | null, required)
- `ownerId` (`signingPostDocumentsByIdGenerateRich.response.200.ownerId`; string, required)
- `privacy` (`signingPostDocumentsByIdGenerateRich.response.200.privacy`; string, required)
  - one of `"team"`, `"participants"`
- `status` (`signingPostDocumentsByIdGenerateRich.response.200.status`; string, required)
  - one of `"draft"`, `"waiting"`, `"completed"`, `"cancelled"`, `"declined"`, `"expired"`, `"failed"`
- `message` (`signingPostDocumentsByIdGenerateRich.response.200.message`; string, required)
- `placement` (`signingPostDocumentsByIdGenerateRich.response.200.placement`; string, required)
  - one of `"page"`, `"tags"`, `"fields"`
- `stages` (`signingPostDocumentsByIdGenerateRich.response.200.stages`; array<object>, required)
  - `id` (`signingPostDocumentsByIdGenerateRich.response.200.stages.id`; string, required)
  - `mode` (`signingPostDocumentsByIdGenerateRich.response.200.stages.mode`; string, required)
    - one of `"all"`, `"any"`
  - `recipients` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients`; array<object>, required)
    - `id` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.id`; string, required)
    - `name` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.name`; string, required)
    - `email` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.email`; string, required)
    - `status` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.status`; string, required)
      - one of `"pending"`, `"awaiting_consent"`, `"signed"`, `"approved"`, `"declined"`, `"skipped"`
    - `locked` (`signingPostDocumentsByIdGenerateRich.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` (`signingPostDocumentsByIdGenerateRich.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` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.delegationId`; string, optional)
    - `signedAt` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.signedAt`; string, optional)
    - `typedName` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.typedName`; string, optional)
    - `viewedAt` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.viewedAt`; string, optional)
    - `approvedAt` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.approvedAt`; string, optional)
    - `declinedAt` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.declinedAt`; string, optional)
    - `declineReason` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.declineReason`; string, optional)
    - `nextReminderAt` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.nextReminderAt`; string, optional)
    - `lastInvitedAt` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.lastInvitedAt`; string, optional)
    - `deliveryError` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.deliveryError`; string, optional)
    - `version` (`signingPostDocumentsByIdGenerateRich.response.200.stages.recipients.version`; integer, optional)
      - min -9007199254740991; max 9007199254740991
  - `role` (`signingPostDocumentsByIdGenerateRich.response.200.stages.role`; string, optional)
    - one of `"signer"`, `"approver"`
  - `delayHours` (`signingPostDocumentsByIdGenerateRich.response.200.stages.delayHours`; number, optional)
  - `condition` (`signingPostDocumentsByIdGenerateRich.response.200.stages.condition`; map<__schema0>, optional)
  - `skipped` (`signingPostDocumentsByIdGenerateRich.response.200.stages.skipped`; boolean, optional)
- `fields` (`signingPostDocumentsByIdGenerateRich.response.200.fields`; array<object>, required)
  - `id` (`signingPostDocumentsByIdGenerateRich.response.200.fields.id`; string, required)
    - minLength 1; maxLength 100
  - `kind` (`signingPostDocumentsByIdGenerateRich.response.200.fields.kind`; string, required)
    - one of `"signature"`, `"initials"`, `"date"`, `"text"`, `"checkbox"`, `"dropdown"`, `"dateInput"`, `"name"`, `"email"`
  - `slot` (`signingPostDocumentsByIdGenerateRich.response.200.fields.slot`; integer, required)
    - min 1; max 50
  - `page` (`signingPostDocumentsByIdGenerateRich.response.200.fields.page`; integer, required)
    - min 1; max 1000
  - `x` (`signingPostDocumentsByIdGenerateRich.response.200.fields.x`; number, required)
    - min 0; max 1
  - `y` (`signingPostDocumentsByIdGenerateRich.response.200.fields.y`; number, required)
    - min 0; max 1
  - `width` (`signingPostDocumentsByIdGenerateRich.response.200.fields.width`; number, required)
    - max 1
  - `height` (`signingPostDocumentsByIdGenerateRich.response.200.fields.height`; number, required)
    - max 1
  - `label` (`signingPostDocumentsByIdGenerateRich.response.200.fields.label`; string, optional)
    - maxLength 200
  - `required` (`signingPostDocumentsByIdGenerateRich.response.200.fields.required`; boolean, optional)
  - `options` (`signingPostDocumentsByIdGenerateRich.response.200.fields.options`; array<string>, optional)
    - minLength 1; maxLength 200
  - `maxLength` (`signingPostDocumentsByIdGenerateRich.response.200.fields.maxLength`; integer, optional)
    - min 1; max 5000
  - `defaultValue` (`signingPostDocumentsByIdGenerateRich.response.200.fields.defaultValue`; any of, optional)
    - any of: `string`, `boolean`
  - `attachmentId` (`signingPostDocumentsByIdGenerateRich.response.200.fields.attachmentId`; string, optional)
    - maxLength 100
  - `localPage` (`signingPostDocumentsByIdGenerateRich.response.200.fields.localPage`; integer, optional)
    - max 9007199254740991
  - `fontSize` (`signingPostDocumentsByIdGenerateRich.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` (`signingPostDocumentsByIdGenerateRich.response.200.createdAt`; string, required)
- `updatedAt` (`signingPostDocumentsByIdGenerateRich.response.200.updatedAt`; string, required)
- `version` (`signingPostDocumentsByIdGenerateRich.response.200.version`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `activity` (`signingPostDocumentsByIdGenerateRich.response.200.activity`; array<object>, required)
  - `id` (`signingPostDocumentsByIdGenerateRich.response.200.activity.id`; string, required)
  - `at` (`signingPostDocumentsByIdGenerateRich.response.200.activity.at`; string, required)
  - `text` (`signingPostDocumentsByIdGenerateRich.response.200.activity.text`; string, required)
- `source` (`signingPostDocumentsByIdGenerateRich.response.200.source`; string, optional)
  - one of `"app"`, `"api"`, `"paperwork"`
- `integrationId` (`signingPostDocumentsByIdGenerateRich.response.200.integrationId`; string, optional)
- `integrationName` (`signingPostDocumentsByIdGenerateRich.response.200.integrationName`; string, optional)
- `signingMode` (`signingPostDocumentsByIdGenerateRich.response.200.signingMode`; string, optional)
  - one of `"manual"`, `"delegated"`
- `delegation` (`signingPostDocumentsByIdGenerateRich.response.200.delegation`; any of, optional)
  - any of:
    - `object`
      - `templateId` (`signingPostDocumentsByIdGenerateRich.response.200.delegation.1.templateId`; string, required)
      - `templateVersion` (`signingPostDocumentsByIdGenerateRich.response.200.delegation.1.templateVersion`; integer, required)
        - min -9007199254740991; max 9007199254740991
    - `null`
- `templateOrigin` (`signingPostDocumentsByIdGenerateRich.response.200.templateOrigin`; object, optional)
  - `templateId` (`signingPostDocumentsByIdGenerateRich.response.200.templateOrigin.templateId`; string, required)
  - `templateVersion` (`signingPostDocumentsByIdGenerateRich.response.200.templateOrigin.templateVersion`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `templateName` (`signingPostDocumentsByIdGenerateRich.response.200.templateOrigin.templateName`; string, required)
- `attachments` (`signingPostDocumentsByIdGenerateRich.response.200.attachments`; array<object>, optional)
  - `id` (`signingPostDocumentsByIdGenerateRich.response.200.attachments.id`; string, required)
  - `fileId` (`signingPostDocumentsByIdGenerateRich.response.200.attachments.fileId`; string, required)
  - `name` (`signingPostDocumentsByIdGenerateRich.response.200.attachments.name`; string, required)
  - `mimeType` (`signingPostDocumentsByIdGenerateRich.response.200.attachments.mimeType`; string, required)
  - `pageCount` (`signingPostDocumentsByIdGenerateRich.response.200.attachments.pageCount`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `startPage` (`signingPostDocumentsByIdGenerateRich.response.200.attachments.startPage`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `sha256` (`signingPostDocumentsByIdGenerateRich.response.200.attachments.sha256`; string, optional)
  - `renditionSha256` (`signingPostDocumentsByIdGenerateRich.response.200.attachments.renditionSha256`; string, optional)
- `pageCount` (`signingPostDocumentsByIdGenerateRich.response.200.pageCount`; integer, optional)
  - min -9007199254740991; max 9007199254740991
- `pages` (`signingPostDocumentsByIdGenerateRich.response.200.pages`; array<object>, optional)
  - `width` (`signingPostDocumentsByIdGenerateRich.response.200.pages.width`; number, required)
  - `height` (`signingPostDocumentsByIdGenerateRich.response.200.pages.height`; number, required)
- `preparationReviewed` (`signingPostDocumentsByIdGenerateRich.response.200.preparationReviewed`; boolean, optional)
- `contentNeedsRender` (`signingPostDocumentsByIdGenerateRich.response.200.contentNeedsRender`; boolean, optional)
- `cc` (`signingPostDocumentsByIdGenerateRich.response.200.cc`; array<object>, optional)
  - `name` (`signingPostDocumentsByIdGenerateRich.response.200.cc.name`; string, required)
  - `email` (`signingPostDocumentsByIdGenerateRich.response.200.cc.email`; string, required)
- `language` (`signingPostDocumentsByIdGenerateRich.response.200.language`; string, optional)
  - one of `"en"`, `"fr"`
- `expiresInDays` (`signingPostDocumentsByIdGenerateRich.response.200.expiresInDays`; number, optional)
- `expiresAt` (`signingPostDocumentsByIdGenerateRich.response.200.expiresAt`; string, optional)
- `reminders` (`signingPostDocumentsByIdGenerateRich.response.200.reminders`; object, optional)
  - `enabled` (`signingPostDocumentsByIdGenerateRich.response.200.reminders.enabled`; boolean, required)
  - `firstAfterDays` (`signingPostDocumentsByIdGenerateRich.response.200.reminders.firstAfterDays`; number, required)
  - `repeatEveryDays` (`signingPostDocumentsByIdGenerateRich.response.200.reminders.repeatEveryDays`; number, required)
  - `expiresBeforeDays` (`signingPostDocumentsByIdGenerateRich.response.200.reminders.expiresBeforeDays`; integer, optional)
    - min 1; max 30
- `allowReassignment` (`signingPostDocumentsByIdGenerateRich.response.200.allowReassignment`; boolean, optional)
- `notifications` (`signingPostDocumentsByIdGenerateRich.response.200.notifications`; object, optional) — Who gets the progress emails of this document.
  - `sender` (`signingPostDocumentsByIdGenerateRich.response.200.notifications.sender`; any of, optional)
    - any of:
      - `object`
        - `email` (`signingPostDocumentsByIdGenerateRich.response.200.notifications.sender.1.email`; string, required)
        - `language` (`signingPostDocumentsByIdGenerateRich.response.200.notifications.sender.1.language`; string, optional)
          - one of `"en"`, `"fr"`
      - `null`
- `branding` (`signingPostDocumentsByIdGenerateRich.response.200.branding`; any of, optional)
  - any of:
    - `object`
      - `name` (`signingPostDocumentsByIdGenerateRich.response.200.branding.1.name`; string, required)
      - `accentColor` (`signingPostDocumentsByIdGenerateRich.response.200.branding.1.accentColor`; string, required)
      - `logoDataUrl` (`signingPostDocumentsByIdGenerateRich.response.200.branding.1.logoDataUrl`; string, optional)
    - `null`
- `variables` (`signingPostDocumentsByIdGenerateRich.response.200.variables`; map<__schema0>, optional)
- `brandingId` (`signingPostDocumentsByIdGenerateRich.response.200.brandingId`; string | null, optional)
- `purpose` (`signingPostDocumentsByIdGenerateRich.response.200.purpose`; string, optional)
- `generation` (`signingPostDocumentsByIdGenerateRich.response.200.generation`; map<__schema0>, optional)
- `extraction` (`signingPostDocumentsByIdGenerateRich.response.200.extraction`; map<__schema0>, optional)
- `postSign` (`signingPostDocumentsByIdGenerateRich.response.200.postSign`; map<__schema0>, optional)
- `fileName` (`signingPostDocumentsByIdGenerateRich.response.200.fileName`; string, optional)
- `fileId` (`signingPostDocumentsByIdGenerateRich.response.200.fileId`; string, optional)
- `generatedText` (`signingPostDocumentsByIdGenerateRich.response.200.generatedText`; string, optional)
- `runId` (`signingPostDocumentsByIdGenerateRich.response.200.runId`; string, optional)
- `error` (`signingPostDocumentsByIdGenerateRich.response.200.error`; string, optional)
- `sending` (`signingPostDocumentsByIdGenerateRich.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` (`signingPostDocumentsByIdGenerateRich.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` (`signingPostDocumentsByIdGenerateRich.response.200.limit`; integer, optional) — With `errorCode`: the open signing request limit of the plan.
  - min -9007199254740991; max 9007199254740991
- `sentAt` (`signingPostDocumentsByIdGenerateRich.response.200.sentAt`; string, optional)
- `completedAt` (`signingPostDocumentsByIdGenerateRich.response.200.completedAt`; string, optional)

### 400

The request could not complete.

#### Example

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

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

### 401

The request could not complete.

#### Example

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

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

### 403

The request could not complete.

#### Example

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

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

### 404

The request could not complete.

#### Example

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

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

### 409

The request could not complete.

#### Example

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

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

### 503

The request could not complete.

#### Example

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

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


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