Values filled in a template (API)

Modified on Wed, 18 Nov at 6:01 PM

When a document from a template has fields that the counterparty fills in, you get the filled values back via the API — you don't have to extract them from the signed PDF.

How to do it

A document with counterparty fields is in the waiting_for_answers state after being sent — the counterparty first fills in the fields, then signs. You can read the values at any time:

curl -H "x-api-key: YOUR_API_KEY" \
  https://api.signi.com/api/v1/contract/1234567/fields

Response (verified example — a template with a single counterparty field):

{
    "fields": [
        {
            "id": "122",
            "name": "Připomínky",
            "value": "Testovací připomínka vyplněná protistranou",
            "filled_by": "counterparty",
            "filled_by_email": "protistrana@email.cz",
            "filled_by_docs_person_id": 1234503,
            "assigned_to": { "role": "counterparty", "party_order": null }
        }
    ]
}

Key fields:

  • value — the filled value; null until someone fills in the field.
  • filled_by / filled_by_email / filled_by_docs_person_id — who filled in the value (proposer / counterparty).
  • assigned_to — who the field is intended for (role, and party_order for multi-party templates).

The values are available immediately after being filled in — you don't have to wait for the signature or for the document to be completed. You'll learn that the filling is done when the document moves out of the waiting_for_answers state (see Document lifecycle), and about signatures via webhook.

The same endpoint also returns the fields of a form document from a PDF with markers.

Where to go next

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article