Skip to main content
POST
/
v1
/
forms
/
autofill
Create And Autofill Form
curl --request POST \
  --url https://api.simplicity.ai/v1/forms/autofill \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "form_file_document_id": "<string>",
  "source_document_ids": [
    "<string>"
  ],
  "instructions": "<string>",
  "context": "<string>"
}
'
{
  "task_id": "<string>",
  "status": "processing"
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Request body for creating and autofilling a form from a PDF with source documents.

form_file_document_id
string
required

The document ID of the PDF form to fill

source_document_ids
string[]

Array of document IDs containing data to extract

instructions
string | null

Optional instructions to guide the AI filling process

context
string | null

Optional text content to be used as context for filling the form using AI/LLM

Response

Successful Response

task_id
string
required
status
enum<string>
default:processing
required
Available options:
pending,
processing,
completed,
failed