Skip to content

Places

Captures

Retrieve data entered by recipients during signing ceremonies through the API

Some place types allow recipients to enter data during the ceremony, such as text input places. The entered data is rendered in the signed document. Captures let you also access that data via the API.

Defining captures

Places that accept recipient input have a capture_as property. Set it to a key name to store the entered value on the envelope’s captures object. Keys must be unique within the envelope.

For example, this text input place asks a recipient to enter an 8-digit reference number:

HTTP
POST /v1/envelopes HTTP/1.1
Host: api.signatureapi.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json

{
  "title": "Order Confirmation",
  "documents": [
    {
      "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/acme-service-agreement.pdf",
      "places": [
        { "key": "order_reference_number", "type": "text_input", "hint": "Your 8-digit reference code", "format": "/^[0-9]{8}$/", "recipient_key": "customer", "capture_as": "reference" },
        { "key": "client_signs_here", "type": "signature", "recipient_key": "customer" },
        { "key": "provider_signs_here", "type": "signature", "recipient_key": "provider" }
      ]
    }
  ],
  "recipients": [
    { "type": "signer", "key": "customer", "name": "Jane Doe", "email": "jane.doe@example.com" },
    { "type": "signer", "key": "provider", "name": "John Smith", "email": "john.smith@example.com" }
  ]
}

When the recipient completes the ceremony, the entered value is stored in the captures object on the envelope:

Envelope (excerpt)
{
  "id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
  "status": "completed",
  "captures": {
    "reference": "11223344"
  }
}

More examples

Multiple text captures

Places
[
  {
    "key": "employee_number",
    "type": "text_input",
    "recipient_key": "applicant",
    "capture_as": "employee_id",
    "format": "/^[0-9]{5}$/",
    "requirement": "required"
  },
  {
    "key": "phone_number",
    "type": "text_input",
    "recipient_key": "applicant",
    "capture_as": "phone",
    "requirement": "required"
  }
]
Captures
{
  "captures": {
    "employee_id": "48213",
    "phone": "555-123-4567"
  }
}

Checkbox capture

Places
[
  {
    "key": "accept_terms",
    "type": "checkbox",
    "recipient_key": "customer",
    "capture_as": "terms_accepted",
    "requirement": "required"
  },
  {
    "key": "marketing_opt_in",
    "type": "checkbox",
    "recipient_key": "customer",
    "capture_as": "marketing_consent"
  }
]
Captures
{
  "captures": {
    "terms_accepted": true,
    "marketing_consent": false
  }
}
Places
[
  {
    "key": "state_selection",
    "type": "dropdown",
    "recipient_key": "applicant",
    "options": "us_states_2_letter_codes",
    "capture_as": "state",
    "requirement": "required"
  }
]
Captures
{
  "captures": {
    "state": "CA"
  }
}