Axelered
Form Fillings

Submit Form Filling

POST
/form-fillings

Submit a Form Filling of a PDF. Pass documentId for an uploaded Document, or file to upload it in the same call. The values are checked against the Form Fields of the PDF before the Form Filling is created. Returns 200 when the Form Filling finishes within wait, 202 otherwise.

Query Parameters

wait?Wait

Seconds to wait for the Job to finish. 200 when it is done or failed, 202 while it runs.

Range0 <= value <= 30
Default0
idempotency_key?|

Unique key that makes the creation at-most-once. Reusing it in the workspace returns 409.

Header Parameters

x-workspace-id?|

The Workspace to act on. Required for the Root Key and global API Keys, optional for bound ones.

Request Body

multipart/form-data
  1. body
config*Config

The Form Filling Config as JSON

documentId?|

An uploaded Document

file?|

A file to upload as a new Document

Response Body

Successful Response

application/json
  1. response
status?Status
Default"ok"
data*
{  "status": "ok",  "data": {    "id": "string",    "workspaceId": "string",    "createdAt": "string",    "documentId": "string",    "status": "queued",    "credits": 0,    "errorCode": "file_too_complex",    "config": {      "values": {        "property1": "string",        "property2": "string"      },      "flatten": false    }  }}