Get a document
The document, everyone on it, and the values you filled in before sending. Signer links are never part of this response.
Permission: signing:read @ workspace/{workspaceId}/signingRequest/{signingRequestId}
Authorization
ServiceAccountKey A service account API key, sent whole as a bearer token:
hsk_<40 hex>.hss_<64 hex>.
In: header
Path Parameters
The document to act on. IDs come from List documents.
Query Parameters
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
application/json
curl -X GET "https://example.com/signing/requests/sZG0nWcpWKBF7zT8CqcN?workspaceId=ws_a1b2c3"{ "success": true, "request": { "id": "string", "templateId": "string", "templateName": "string", "name": "string", "message": "string", "status": "draft", "order": "parallel", "delivery": "email", "sendFrom": { "email": "[email protected]", "phone": "string" }, "layoutVersion": 0, "layoutChangedBy": null, "previousPdfs": [ { "sha256": "string", "fileName": "string", "pageCount": 0, "replacedAt": "2019-08-24T14:15:22Z", "replacedBy": "string" } ], "snapshot": { "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 } ] }, "signerSummary": { "total": 0, "completed": 0 }, "prefills": { "property1": "string", "property2": "string" }, "prefillEditable": [ "string" ], "expiresAt": "2019-08-24T14:15:22Z", "remindEveryDays": 2, "createdAt": "2019-08-24T14:15:22Z", "sentAt": "2019-08-24T14:15:22Z", "allSignedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "declinedAt": "2019-08-24T14:15:22Z", "voidedAt": "2019-08-24T14:15:22Z", "expiredAt": "2019-08-24T14:15:22Z", "result": null, "finalizeError": "string" }, "signers": [ { "id": "string", "roleId": "string", "name": "string", "email": "string", "contactId": "string", "phone": "string", "order": 0, "status": "pending", "consentAt": "2019-08-24T14:15:22Z", "openedAt": "2019-08-24T14:15:22Z", "lastEmailAt": "2019-08-24T14:15:22Z", "lastSmsAt": "2019-08-24T14:15:22Z", "lastLinkAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "declinedAt": "2019-08-24T14:15:22Z", "declineReason": "string", "ip": "string", "userAgent": "string", "timezone": "string", "remindersSent": 0, "nextReminderAt": "2019-08-24T14:15:22Z" } ]}See what you can send a document from GET
Every email address and phone number a document in this workspace can be sent from, and whether **you** may use each one. The HumaDocs address `[email protected]` is always first and always usable. A workspace address needs `email:send`, or `email:me:use` with the address assigned to you. A number needs `phone:send`. `defaults` are what the send dialog picks first: your first usable workspace address, else the HumaDocs address, and your first usable number. With no number that can send text messages, `numbers` is empty and `smsMissingReason` says why. `canAllocate` says whether you may add an address (`email:manage`) or a number (`phone:manage`) in the console. **Permission:** `signing:send` @ `workspace/{workspaceId}` #### Request ```bash curl "$HOS_API/signing/requests/senders?workspaceId=ws_a1b2c3" \ -H "Authorization: Bearer $HOS_KEY" ```
Delete a document DELETE
Removes the document, its files, the people on it and its activity record. Refused while it is out for signing or while its finished PDF is being made; cancel it first. A finished document still verifies after it is deleted: [Check a finished document](/docs/api-reference/signing/finished-documents/verifySignedDocument) answers `found: true` with `deleted: true`. **Permission:** `signing:manage` @ `workspace/{workspaceId}/signingRequest/{signingRequestId}`