docusign.templates.get-template-page-images ​
Returns images of the pages in a template document for display based on the parameters that you specify.
Returns document page images based on input.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-docusign |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
base_url | string | Yes | — | Docusign API root, e.g. https://<host>/api |
api_token | string | No | — | Bearer token; omit to use the workflow's token env var |
accountid | string | Yes | — | (Required) The external account number (int) or account ID GUID. |
documentid | string | Yes | — | (Required) The ID of the document. |
templateid | string | Yes | — | (Required) The ID of the template. |
count | string | No | — | The maximum number of results to return. |
dpi | string | No | — | The number of dots per inch (DPI) for the resulting images. Valid values are 1-310 DPI. The default value is 94. |
max_height | string | No | — | Sets the maximum height of the returned images in pixels. |
max_width | string | No | — | Sets the maximum width of the returned images in pixels. |
nocache | string | No | — | When true, using cache is disabled and image information is retrieved from a database. True is the default value. |
show_changes | string | No | — | When true, changes display in the user interface. |
start_position | string | No | — | The position within the total result set from which to start returning values. The value thumbnail may be used to return the page image. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
base_url | string | Yes | — | Docusign API root, e.g. https://<host>/api |
api_token | string | No | — | Bearer token; omit to use the workflow's token env var |
accountid | string | Yes | — | (Required) The external account number (int) or account ID GUID. |
documentid | string | Yes | — | (Required) The ID of the document. |
templateid | string | Yes | — | (Required) The ID of the template. |
count | string | No | — | The maximum number of results to return. |
dpi | string | No | — | The number of dots per inch (DPI) for the resulting images. Valid values are 1-310 DPI. The default value is 94. |
max_height | string | No | — | Sets the maximum height of the returned images in pixels. |
max_width | string | No | — | Sets the maximum width of the returned images in pixels. |
nocache | string | No | — | When true, using cache is disabled and image information is retrieved from a database. True is the default value. |
show_changes | string | No | — | When true, changes display in the user interface. |
start_position | string | No | — | The position within the total result set from which to start returning values. The value thumbnail may be used to return the page image. |
status_code | integer | No | — | HTTP status code of the completed call |
response | json | No | — | Parsed JSON response body |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_at | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
failed_at_state | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | Waiting to call GET /v2.1/accounts/{accountId}/templates/{templateId}/documents/{documentId}/pages |
completed | No | Yes | Yes | — | HTTP call succeeded |
failed | No | Yes | No | — | HTTP call failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | Perform GET /v2.1/accounts/{accountId}/templates/{templateId}/documents/{documentId}/pages |
* (any state) | fail | failed | Record the failure reason |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "docusign.templates.get-template-page-images",
"initial_data": {
"base_url": "value",
"accountid": "value",
"documentid": "value",
"templateid": "value"
}
}