Check a document's roles and fields

Runs the same check a save runs, and saves nothing. Send roles and fields to check a change; leave either out to use what is stored.

Permission: signing:read @ workspace/{workspaceId}/signingRequest/{signingRequestId}

Authorization

ServiceAccountKey
AuthorizationBearer <token>

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

In: header

Path Parameters

signingRequestId*string

The document to act on. IDs come from List documents.

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.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

POSTCheck a document's roles and fields
curl -X POST "https://example.com/signing/requests/sZG0nWcpWKBF7zT8CqcN/check-layout?workspaceId=ws_a1b2c3" \  -H "Content-Type: application/json" \  -d '{}'
{  "success": true,  "ok": true,  "errors": [    {      "code": "string",      "level": "error",      "fieldId": "string",      "roleId": "string",      "otherFieldId": "string",      "message": "string"    }  ],  "warnings": [    {      "code": "string",      "level": "error",      "fieldId": "string",      "roleId": "string",      "otherFieldId": "string",      "message": "string"    }  ],  "layoutVersion": 0}
POST
/signing/requests/{signingRequestId}/check-layout