Count documents by stage

Counts for the HumaDocs home page: drafts, documents waiting for others, finished documents, and actionsRequired, the number of items List what needs you returns for the caller.

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.

Response Body

application/json

application/json

application/json

application/json

GETCount documents by stage
curl -X GET "https://example.com/signing/requests/summary?workspaceId=ws_a1b2c3"
{  "success": true,  "summary": {    "drafts": 0,    "waiting": 0,    "finalized": 0,    "actionsRequired": 0  }}
GET
/signing/requests/summary

Send a template, or save it as a draft POST

Makes a document from a template, with one person for each role, and sends it. With `send: false` it is saved as a draft instead; a draft may leave roles empty, and is sent later with [Send a draft](/docs/api-reference/signing/documents/sendSigningRequest). In signing order, only the first group is invited now. The next group is invited when the group before them has finished. Every person still gets a link now: the people in later turns are in `laterLinks`, and their message carries the same link when their turn comes. The response carries each invited person's signing link in `invites`, and each later person's link in `laterLinks`. **A link is a secret**: anyone holding it can sign as that person. **Permission:** `signing:send` @ `workspace/{workspaceId}`, plus `contact:read` @ `workspace/{workspaceId}` when any signer is a CRM contact. When sending now, also `email:send` @ `workspace/{workspaceId}` (or `email:me:use` with the address assigned to you) to send from a workspace email address, and `phone:send` @ `workspace/{workspaceId}` to send text messages. The HumaDocs address (`[email protected]`) needs nothing more. ## Get the template ID first ```bash curl "$HOS_API/signing/templates?workspaceId=ws_a1b2c3" \ -H "Authorization: Bearer $HOS_KEY" ``` #### Request ```bash curl -X POST "$HOS_API/signing/requests?workspaceId=ws_a1b2c3" \ -H "Authorization: Bearer $HOS_KEY" \ -H "Content-Type: application/json" \ -d '{ "templateId": "RVeFlYdDGgoESUXespsR", "name": "Service agreement, Acme", "signers": [{ "roleId": "client", "name": "Ana Silva", "email": "[email protected]" }] }' ```

List what needs you GET

The HumaDocs home page's **Actions required**: documents waiting for the caller, newest activity first. Each item has a `reason`: | `reason` | The document | | --- | --- | | `your_turn` | Is out for signing and it is the caller's turn, matched by the caller's account email. `signerId` is the caller's signer | | `declined`, `expired`, `finalizeFailed` | Was sent by the caller and needs the sender to look at it. It stays listed until it is deleted | **With an API key.** A service account has no email, so `your_turn` never appears. The other three list documents the service account itself sent. At most 100 of each kind. A document that is both is listed once, as `your_turn`. **Permission:** `signing:read` @ `workspace/{workspaceId}`