Documentation Index
Fetch the complete documentation index at: https://docs.runpulse.com/llms.txt
Use this file to discover all available pages before exploring further.
FormResult synchronously by default. Set async: true to run in the background and poll GET /job/jobId for the result./form/clear strips handwritten entries, typed responses, and selected checkbox marks from a PDF without altering the blank template underneath.
instructions is optional:
"clear only the address fields") to scope the clear to specific fields.form_id: chain off a prior /form/detect, /form/fill, or /form/clear call. The cached PDF and form_fields are reused, so there is no need to re-upload.file_url: public or presigned URL to a PDF.file: direct PDF upload (multipart only).400.
credits_used for this request and a cumulative plan_info.total_credits_used snapshot for your organization.
| Field | Type | Required | Description |
|---|---|---|---|
form_id | string (uuid) | One of these | Reuse a previously processed form. Skips re-upload and re-detection. |
file_url | string (uri) | One of these | Public or presigned URL of a PDF to download and clear. |
file | binary | One of these | Direct PDF upload (multipart only). |
instructions | string | No | Optional natural-language scoping prompt. When omitted, every user-filled value is cleared and the printed template is preserved. |
form_fields | array of FormCell | No | Optional override for the cells used when clearing. |
page_range | string | No | 1-based page filter, for example "1,3-5". Alias pages accepted. |
async | boolean | No | When true, returns { job_id, status: "pending" } immediately (HTTP 202) and processes the job in the background. Default false. |
FormResult/form/fill response, with fields_cleared substituted for fields_filled.
| Field | Type | Description |
|---|---|---|
form_id | string (uuid) | ID of the new form record produced by this run. Pass back via form_id to chain. |
page_count | integer | Number of pages in the output PDF. |
pdf_url | string (uri) | URL to download the cleared PDF binary. Always points at GET /results/jobId/pdf. Requires the same auth as the rest of the API. |
form_fields | array of FormCell | Detected cells of the resulting (cleared) PDF, refreshed after the clear. |
fields_cleared | integer | Number of cells whose value actually changed during this run. Fields that were already empty are not counted, so on an empty template this returns 0 even when many fields exist. |
credits_used | number | Credits consumed by this request (3 × page_count). |
plan_info | object | { tier, total_credits_used, pages_used } cumulative billing snapshot for your organization (post-request). |
FormJobAcceptedasync is true:
result carries the same FormResult shape that the sync flow would have returned inline.
| Code | Description |
|---|---|
| 200 | Cleared FormResult returned synchronously. |
| 202 | Async job accepted (async: true). Poll /job/{jobId} for the result. |
| 400 | Missing PDF, more than one PDF source provided, or malformed form_fields. |
| 401 | Authentication failed or missing API key. |
| 404 | Referenced form_id not found (or belongs to a different org). |
| 500 | Internal server error. |
instructions to clear only specific fields.
form_id returned by each step is the hand-off.
API key for authentication
JSON body for POST /form/clear. Provide exactly one of form_id
or file_url (or use the multipart variant to upload a file).
Restrict the operation to a subset of pages. Accepts
comma-separated page numbers and ranges, e.g. "1-3,5".
Alias: pages.
When true, the endpoint returns immediately with
{ job_id, status: "pending" } (HTTP 202) and processes the
job in the background. Poll GET /job/{jobId} for the result.
Optional override for the cells used when filling or clearing.
When omitted, Pulse uses the cells stored on the referenced
form_id, or detects them from the uploaded PDF.
ID returned by a previous /form/detect, /form/fill, or
/form/clear call. Reuses the stored PDF without re-uploading.
Public or presigned URL of a PDF to download and clear.
Optional natural-language description of what to clear. When omitted, every user-filled value is cleared while the printed template is preserved.
"Clear only the signature and date fields."
Cleared FormResult returned synchronously.
Result body returned by /form/detect, /form/fill, and
/form/clear. For async jobs (async: true) the same shape is
served back under result on GET /job/{jobId}.
ID of the form record produced by this run. Pass to a subsequent
/form/detect, /form/fill, or /form/clear call as the single
input source to iterate without re-uploading the PDF.
Number of pages in the output PDF.
x >= 1Detected cells of the resulting PDF (refreshed from the
filled / cleared output for fill / clear, or freshly detected for
/form/detect).
URL to download the resulting PDF binary. Always points at
GET /results/{jobId}/pdf for the originating job. Requires the
same authentication (API key or JWT) as the rest of the API.
Number of cells whose value actually changed during this run.
Present on /form/fill responses only.
x >= 0Number of cells whose value actually changed during this run
(no-op clears on already-empty fields are not counted).
Present on /form/clear responses only.
x >= 0Credits consumed by this request. Detect charges 1 credit per page; fill and clear charge 3 credits per page.
Cumulative billing snapshot for the calling organization. Includes the in-flight request's contribution, so every response reflects post-request state.