Submissions

Once a respondent submits a form, you retrieve the data through the API. This page covers how to list submissions and how to read the answers back.

Listing submissions

List the submissions for a form:

curl -X GET "https://app.penneo.com/collect/api/v1/forms/{formId}/submissions?limit=1000&offset=0" \
  -H "Authorization: Bearer YOUR_TOKEN"

Submissions that have at least been filled are returned; submissions a respondent has opened but not yet submitted are excluded. Query parameters:

ParameterDescription
limitPage size, 1–1000. Default 1000.
offsetNumber of results to skip. Default 0.
completedAfterOnly submissions filled and signed strictly after this UTC time (ISO-8601, e.g. 2026-01-01T00:00:00Z). Matches on casefileCompletedAt — the moment signing finished — so submissions that are not yet signed are excluded.
completedBeforeOnly submissions filled and signed strictly before this UTC time (ISO-8601). Matches on casefileCompletedAt — the moment signing finished — so submissions that are not yet signed are excluded.
statusOnly submissions with this status: STARTED, FILLED, COMPLETED, or FAILED (see Status values). Because the list excludes not-yet-filled submissions, STARTED and FAILED never match here.

The response is a page of submission summaries. Use completedAfter to fetch only the submissions signed since your last check, or status=COMPLETED to fetch only fully signed ones:

{
  "items": [
    {
      "submissionId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "requestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "status": "COMPLETED",
      "primarySigningLink": "https://sign.penneo.com/…",
      "submissionStartedAt": "2024-03-01T10:00:00Z",
      "submissionCompletedAt": "2024-03-01T10:05:32Z",
      "casefileCompletedAt": "2024-03-01T10:10:00Z"
    }
  ],
  "limit": 1000,
  "offset": 0
}

Take a submissionId from the list and fetch its full answers below.

Retrieving answers

Two endpoints return the same response shape. Use whichever ID you have.

By submission — using a submissionId from the list above:

curl -X GET https://app.penneo.com/collect/api/v1/forms/{formId}/submissions/{submissionId}/answers \
  -H "Authorization: Bearer YOUR_TOKEN"

By request — for a prefilled request, using its requestId:

curl -X GET https://app.penneo.com/collect/api/v2/forms/{formId}/requests/{requestId}/answers \
  -H "Authorization: Bearer YOUR_TOKEN"

The form must be ACTIVE or ARCHIVED, and you must have access to it.

Downloading the signed document

Once signing has completed, download the signed PDF directly. The response is streamed as application/pdf with a Content-Disposition attachment filename. Both endpoints take the same IDs you already use to read answers.

By submission — using a submissionId:

curl -X GET https://app.penneo.com/collect/api/v1/forms/{formId}/submissions/{submissionId}/signed-document \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -o signed-document.pdf

By request — using a requestId:

curl -X GET https://app.penneo.com/collect/api/v2/forms/{formId}/requests/{requestId}/signed-document \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -o signed-document.pdf

The signed document is available only after signing has finished. Until then, these endpoints return 404 Not Found.

Response shape

The response is grouped by section. Each section and each field carries a multipleEntries flag that decides how its answers are shaped.

Single-entry (the common case)

{
  "formId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "submissionId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "requestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "COMPLETED",
  "primarySigningLink": "https://sign.penneo.com/…",
  "version": 1,
  "submissionStartedAt": "2024-03-01T10:00:00Z",
  "submissionCompletedAt": "2024-03-01T10:05:32Z",
  "casefileCompletedAt": "2024-03-01T10:10:00Z",
  "sections": [
    {
      "title": "Personal",
      "multipleEntries": false,
      "answers": [
        { "name": "full_name",  "label": "Full Name", "type": "TEXT",   "multipleEntries": false, "value": "Jane Smith" },
        { "name": "email",      "label": "Email",     "type": "EMAIL",  "multipleEntries": false, "value": "[email protected]" },
        { "name": "department", "label": "Department","type": "CHOICE", "multipleEntries": false, "value": ["product"] },
        { "name": "id_card",    "label": "ID Card",   "type": "FILE",   "multipleEntries": true,
          "values": [{ "filename": "id.pdf", "size": 12345, "link": "https://…signed-link…" }] }
      ]
    }
  ],
  "respondents": [
    { "fullName": "Jane Smith", "email": "[email protected]", "validatedName": "Jane Smith", "signingLink": "https://sign.penneo.com/…", "initiator": true,  "added": false },
    { "fullName": "John Doe",   "email": "[email protected]", "validatedName": null,          "signingLink": "https://sign.penneo.com/…", "initiator": false, "added": true }
  ]
}

Multi-entry section

A multi-entry section carries instances instead of answers, one entry per submitted instance:

{
  "sections": [
    {
      "title": "Applicants",
      "multipleEntries": true,
      "instances": [
        { "answers": [{ "name": "name", "label": "Name", "type": "TEXT", "multipleEntries": false, "value": "Ada" }] },
        { "answers": [{ "name": "name", "label": "Name", "type": "TEXT", "multipleEntries": false, "value": "Grace" }] }
      ]
    }
  ]
}

Multi-entry field

A multi-entry field carries values (plural), the ordered list:

{
  "sections": [
    {
      "title": "Contact",
      "multipleEntries": false,
      "answers": [
        { "name": "phones", "label": "Phones", "type": "PHONE", "multipleEntries": true, "values": ["+4511111111", "+4522222222"] }
      ]
    }
  ]
}

Property reference

PropertyTypeDescription
formIdUUIDThe form this submission belongs to.
submissionIdUUIDThe submission's ID.
requestIdUUID or nullThe request this submission came from, if any.
statusstringCustomer-facing status of the submission. One of STARTED, FILLED, COMPLETED, FAILED (see below).
primarySigningLinkstringThe signing link for the primary signer. Omitted until a signing link is available.
versionintThe form version this submission was filled against.
submissionStartedAtISO 8601When the form was first opened.
submissionCompletedAtISO 8601 or nullWhen it was submitted. null if not yet submitted.
casefileCompletedAtISO 8601 or nullWhen the signing process finished. null until then.
sections[].titlestringThe section's title.
sections[].multipleEntriesbooltrue when the section is multi-entry; it then carries instances.
sections[].answers[]arrayPresent when multipleEntries: false. The section's answers.
sections[].instances[].answers[]arrayPresent when multipleEntries: true. The answers for each instance.
answers[].namestringThe field's internal name.
answers[].labelstringThe field's display label.
answers[].typestringThe field type.
answers[].multipleEntriesbooltrue when the field is multi-entry; it then carries values (plural).
answers[].valuevariesPresent when multipleEntries: false. Shape depends on type (see below).
answers[].valuesarrayPresent when multipleEntries: true. The ordered list of values.
respondentsarraySigners associated with the submission, if any.
respondents[].fullNamestringThe signer's full name, as entered on the request.
respondents[].emailstringThe signer's email.
respondents[].validatedNamestring | nullThe name validated by the signer's electronic ID (MitID, BankID, …). null until the signer has signed, or if no validated name is available.
respondents[].signingLinkstringThe signer's signing link. Omitted until a signing link is available for that signer.
respondents[].initiatorbooltrue if this signer initiated the request.
respondents[].addedbooltrue if this signer was added while the form was filled, rather than predefined on the form.

Status values

StatusMeaning
STARTEDThe form has been opened but signing links are not yet available.
FILLEDThe submission has been filled; the case file is being prepared or is ready to sign. Signing links become available once the case file is created, so they may not be present yet.
COMPLETEDThe case file has been fully signed.
FAILEDThe submission could not be processed.

Value shapes by type

TypeShape (single value)
TEXTstring
EMAILstring
PHONEstring
DATEISO 8601 date string (YYYY-MM-DD)
DATETIMEISO 8601 datetime string
NUMBERJSON number
CHOICEarray of strings: the selected option value(s)
NIN{ "value": string, "countryCode": string }
BUSINESS_ID{ "value": string, "countryCode": string }
FILE{ "filename": string, "size": int, "link": string }

For multi-entry fields, each element of values has the shape above.

If submissionCompletedAt is null, the form has been opened but not submitted; sections may be empty or partial.

Errors

StatusWhen
404 Not FoundThe form, submission, or request doesn't exist, you lack access, or the signed document isn't ready yet.