Resources
Documents
Upload PDFs, track status, void, download the signed result, and clean up drafts. Documents are the core object in the SigPen API.
Available on Developer+Quota: plan-basedWebhooks: document.*
List documents
| Parameter | Type | Description |
|---|---|---|
statusoptional | string | |
pageoptional | integer | |
per_pageoptional | integer | |
searchoptional | string | |
sortoptional | enum: created_at · updated_at | |
orderoptional | enum: asc · desc |
GET /api/v1/documents
curl -X GET \ https://www.sigpen.com/api/v1/documents \ -H "Authorization: Bearer sp_test_your_key"
200 · RESPONSE
{
"data": [
{
"id": "doc_123",
"external_id": "crm-7841",
"title": "Mutual NDA",
"file_name": "nda.pdf",
"status": "draft",
"metadata": {
"key": "value"
},
"created_at": "2026-06-11T18:02:11Z",
"updated_at": "2026-06-11T18:02:11Z"
}
],
"pagination": {
"page": 1,
"per_page": 0,
"total": 0,
"total_pages": 0
}
}Upload a document
Upload a base64-encoded PDF for signing. Counts toward monthly document limit.
| Parameter | Type | Description |
|---|---|---|
filerequired | string | Base64-encoded PDF |
file_namerequired | string | |
titleoptional | string | |
external_idoptional | string | Your own record ID, stored on the document and returned in every webhook. |
metadataoptional | object |
POST /api/v1/documents
curl -X POST \
https://www.sigpen.com/api/v1/documents \
-H "Authorization: Bearer sp_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"file": "JVBERi0xLjcK… (base64 PDF)",
"file_name": "nda.pdf",
"title": "Mutual NDA",
"external_id": "crm-7841"
}'201 · RESPONSE
{
"id": "doc_123",
"external_id": "crm-7841",
"title": "Mutual NDA",
"file_name": "nda.pdf",
"status": "draft",
"metadata": {
"key": "value"
},
"created_at": "2026-06-11T18:02:11Z",
"updated_at": "2026-06-11T18:02:11Z"
}GET /api/v1/documents/{id}
curl -X GET \ https://www.sigpen.com/api/v1/documents/doc_123 \ -H "Authorization: Bearer sp_test_your_key"
Delete a document (trash)
Moves a draft document to trash (30-day soft delete).
| Parameter | Type | Description |
|---|---|---|
idrequiredpath | string |
DELETE /api/v1/documents/{id}
curl -X DELETE \ https://www.sigpen.com/api/v1/documents/doc_123 \ -H "Authorization: Bearer sp_test_your_key"
Void a document
| Parameter | Type | Description |
|---|---|---|
idrequiredpath | string | |
reasonrequired | string |
POST /api/v1/documents/{id}/void
curl -X POST \
https://www.sigpen.com/api/v1/documents/doc_123/void \
-H "Authorization: Bearer sp_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"reason": "string"
}'GET /api/v1/documents/{id}/download
curl -X GET \ https://www.sigpen.com/api/v1/documents/doc_123/download \ -H "Authorization: Bearer sp_test_your_key"