Find the blanks to fill in

Finds the places on the template's pages where a person is meant to write: typed blank lines, drawn lines, empty answer boxes and checkboxes, with the printed words around each. It does not decide field types or roles, and it saves nothing.

Permission: signing:read @ workspace/{workspaceId}/signingTemplate/{signingTemplateId}

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

signingTemplateId*string

The template to act on. IDs come from List templates.

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

POSTFind the blanks to fill in
curl -X POST "https://example.com/signing/templates/RVeFlYdDGgoESUXespsR/detect-fields?workspaceId=ws_a1b2c3" \  -H "Content-Type: application/json" \  -d '{}'
{  "success": true,  "hasText": true,  "pagesRead": [    0  ],  "candidates": [    {      "candidateId": "c_3_2",      "page": 0,      "x": 0,      "y": 0,      "w": 0,      "h": 0,      "kind": "underscores",      "before": "string",      "above": "string",      "after": "string",      "coveredBy": [        "string"      ]    }  ]}
POST
/signing/templates/{signingTemplateId}/detect-fields