Create Session
URL
POST /v1/sessions
Description
Create a new autofill session for a PDF form.
Supports JSON or multipart/form-data.
Always returns JSON with a session_id
.
Use GET /v1/sessions/{id}
to check status and download the filled PDF once completed
.
Request
Headers
Authorization
:Bearer YOUR_API_KEY
(required)Content-Type
:application/json
ormultipart/form-data
(required)
Body (JSON)
{
"form_id": "6840582d3745268a298e0283",
"profile_ids": ["p1", "p2"],
"file_urls": ["https://example.com/data.pdf"],
"text_info": "name: John Doe"
}
Body (multipart/form-data)
formId
(string, required)files
(file[], optional)
Success Response
- Code: 202 Accepted
- Content:
{
"id": "cs_b99dd8e96681494b9e758e6723fdb6df",
"object": "session",
"session_id": "68d19e587fa512779570328f"
}