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;
nulluntil 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, andparty_orderfor 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
- Document from a template — how to create a document from a template
- Filling in template data by the counterparty — how the counterparty sees it
- Form document from a PDF with markers
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article