Signature requests
Send a document for e-signature, check who has signed, and download the signed copy.
A signature request asks one or more people to sign a document: an estimate, an invoice, or a contract template. The API can send a request, report its progress, and return the signed PDF when everyone has signed.
Reads need the signatures:read scope. Sending needs signatures:write.
Needs the e-signature add-on
These routes return 403 with the message signing_addon_required when
the account does not have e-signatures switched on.
List and read requests
GET /api/v1/signing/requests returns the 100 most recent requests, newest
first. This list is not paged.
| Field | Description |
|---|---|
id | Signature request ID. |
objectSlug, recordId | The record the document belongs to, for example estimate and its ID. |
clientId | The client on that record. |
sourceKind | What is being signed. See below. |
title | The document's title. |
status | The request's status. completed when everyone has signed. |
ordering | The signing order. |
createdAt, updatedAt, completedAt, expiresAt | Timestamps. |
GET /api/v1/signing/requests/{id} adds signers, one entry per signer with
id, role, status, signedAt and method.
Send a request
curl -X POST https://api.fieldcamp.ai/api/v1/signing/requests \
-H "Authorization: Bearer $FIELDCAMP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"objectSlug": "estimate",
"recordId": "665f1c2ab7e4a91d3c0f8a11",
"sourceKind": "document",
"sourceId": "665f1c2ab7e4a91d3c0f8a11",
"idempotencyKey": "5f0c2a1e-7b3d-4c8e-9a41-2d6f0b9c1e77",
"signers": [
{ "role": "Customer", "method": "email" }
],
"message": "Please review and sign."
}'| Field | Required | Description |
|---|---|---|
objectSlug | Yes | The record type the document belongs to, for example estimate, invoice or job. |
recordId | Yes | That record's ID. |
sourceKind | Yes | document (the estimate or invoice itself), contract_template, or job_document. |
sourceId | Yes | ID of the thing being signed. |
idempotencyKey | Yes | A UUID you generate. Sending the same key again returns the first request instead of sending a second one. |
signers | Yes | One entry per signer the document asks for, in the document's order. |
message | No | A note shown to the signer. |
requireOtp | No | true asks the signer for a one-time code. |
remindCadence | No | Reminders: { "intervalDays": 3, "maxReminders": 2 }. intervalDays is 1–30 and maxReminders is 0–20. |
expiresInDays | No | Days until the request expires, 1–365. |
Each entry in signers:
| Field | Description |
|---|---|
role | Must match a signer role on the document, for example Customer. Each role once. |
method | email, sms, app (a team member signs in FieldCamp) or in_person. |
name | The signer's name. For Customer it defaults to the client's name. |
recipient, customEmail | For email: who receives it. Defaults to the client's email. |
phone | For sms: the number to text. Required with that method. |
userId | For app: the team member who signs. |
The response is the request, with status 201 when a new request was sent
and 200 when the idempotencyKey matched an earlier one.
Refusals. The reason is in error.message:
| Status | Message | When |
|---|---|---|
400 | invalid_signature_request | sourceKind, objectSlug, idempotencyKey or signers is missing or wrong, or the body has a field the API does not know. |
400 | invalid_signers | The signers do not match the document's signer roles. |
400 | signer_email_required, signer_phone_required, signer_name_required | A signer is missing the detail its method needs. |
404 | signing_record_not_found | recordId or sourceId is missing, is not a valid ID, or is not on this account. |
400 | invalid_signer_method, invalid_signer_recipient | A signer's method or recipient is not an accepted value. |
400 | invalid_signing_expiry, invalid_signing_reminders | expiresInDays or remindCadence is outside its range. |
400, 409 | assigned_technician_required | A job document must be signed in the app by a technician assigned to the job. 409 when the job has no technician assigned, 400 when the signer is not one of them. |
409 | document_has_no_signature_fields, signer_signature_field_required | The document has no place to sign, or a signer has none. |
409 | signing_send_idempotency_conflict | The idempotencyKey was already used for a different request. |
409 | signing_details_required | The document has blanks that must be filled in FieldCamp first. |
403 | signing_addon_required | The e-signature add-on is not on. |
Download the signed copy
GET /api/v1/signing/requests/{id}/artifact returns a link to the signed
PDF.
| Field | Description |
|---|---|
url | A download link. Valid for 5 minutes. |
sha256 | The SHA-256 hash of the signed file, to check the download. |
artifact | Always signed. |
expiresInSeconds | 300. |
It returns 409 with signature_request_not_completed until every signer
has signed. Call it again for a fresh link when the old one has expired.
Webhook events
document.sent, document.viewed, document.signed, document.declined
and request.completed tell you when a request moves on. Subscribe to each
by its exact name. See
Webhook events.
Endpoints
curl -X GET "https://example.com/api/v1/signing/requests"/api/v1/signing/requestsRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/api/v1/signing/requests" \ -H "Content-Type: application/json" \ -d '{ "objectSlug": "string", "recordId": "string", "sourceKind": "document", "sourceId": "string", "idempotencyKey": "0c14c6a6-6f50-4d1e-b0c4-b46ff43ba6a1", "signers": [ {} ] }'curl -X GET "https://example.com/api/v1/signing/requests/string"curl -X GET "https://example.com/api/v1/signing/requests/string/artifact"