List templates

Templates in the workspace, without archived ones unless you ask.

Permission: signing:read @ workspace/{workspaceId}

Authorization

ServiceAccountKey
AuthorizationBearer <token>

A service account API key, sent whole as a bearer token: hsk_<40 hex>.hss_<64 hex>.

In: header

Query Parameters

workspaceId*string

The workspace the template or document belongs to. Send it in the query string on every call, including the PDF upload. IDs come from List workspaces.

includeArchived?"true"

Send true to include archived templates.

Value in

  • "true"

Response Body

application/json

application/json

application/json

application/json

application/json

GETList templates
curl -X GET "https://example.com/signing/templates?workspaceId=ws_a1b2c3"
{  "success": true,  "templates": [    {      "id": "string",      "name": "string",      "description": "string",      "pdf": {        "fileName": "string",        "pageCount": 0,        "pageSizes": [          {            "w": 0,            "h": 0          }        ],        "sha256": "string",        "md5": "string",        "bytes": 0      },      "roles": [        {          "roleId": "client",          "label": "Client",          "order": 1        }      ],      "fields": [        {          "fieldId": "client_sig",          "roleId": "client",          "type": "signature",          "label": "string",          "required": true,          "page": 0,          "x": 0,          "y": 0,          "w": 0,          "h": 0        }      ],      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "archivedAt": "2019-08-24T14:15:22Z",      "layoutVersion": 0,      "layoutChangedBy": null,      "duplicatedFrom": "string",      "previousPdfs": [        {          "sha256": "string",          "fileName": "string",          "pageCount": 0,          "replacedAt": "2019-08-24T14:15:22Z",          "replacedBy": "string"        }      ]    }  ]}
GET
/signing/templates