Logo ExelensiaExelensia/Docs
Getting Started
  • Introduction
API Reference
  • Schemas
  • Templates
  • Upload
  • Process
  • Files
  • Results
  • Exports

Process

The Process API submits uploaded files for extraction using a schema. Processing is asynchronous — when you create a process job, it returns immediately with a job record. The actual extraction runs in the background. Poll the Results API to retrieve extracted data once processing completes.

Endpoints

GET /v1/process

Returns a paginated list of process jobs for your team.

Query Parameters

ParameterTypeRequiredDefaultDescription
pagenumberNo1Page number (min: 1)
limitnumberNo20Items per page (min: 1, max: 100)
sort_bystringNo—Field to sort by (e.g. createdAt)
sort_orderstringNodescSort direction: asc or desc
searchstringNo—Search filter
created_afterstringNo—ISO 8601 date filter
created_beforestringNo—ISO 8601 date filter
fieldsstringNo—Comma-separated list of fields to return
includestringNo—Related resources to include
file_idstringNo—Filter jobs by a specific file UUID

Request

Bash
curl -H "x-api-key: your_api_key_here" \
  "https://api.exelensia.com/v1/process?page=1&limit=20"

Response

JSON
{
  "data": [
    {
      "id": "019760a0-0030-7000-8000-000000000030",
      "file_id": "019760a0-0020-7000-8000-000000000020",
      "schema_id": "019760a0-0001-7000-8000-000000000001",
      "status": "COMPLETED",
      "createdAt": "2024-01-16T09:00:00.000Z",
      "updatedAt": "2024-01-16T09:00:45.000Z"
    },
    {
      "id": "019760a0-0031-7000-8000-000000000031",
      "file_id": "019760a0-0021-7000-8000-000000000021",
      "schema_id": "019760a0-0001-7000-8000-000000000001",
      "status": "PENDING",
      "createdAt": "2024-01-16T09:05:00.000Z",
      "updatedAt": "2024-01-16T09:05:00.000Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 2,
    "totalPages": 1
  }
}

Job Status Values

StatusDescription
PENDINGJob queued, waiting to start
PROCESSINGExtraction in progress
COMPLETEDExtraction finished — results available
FAILEDExtraction failed

Status Codes

StatusDescription
200Success
401Missing or invalid authentication

POST /v1/process

Creates a new extraction job for a file using a schema. Returns immediately — processing runs asynchronously.

Request Body

FieldTypeRequiredDescription
file_idstringYesUUID of the uploaded file (from the Upload API)
schema_idstringYesUUID of the extraction schema to apply
Bash
curl -X POST \
  -H "x-api-key: your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "file_id": "019760a0-0020-7000-8000-000000000020",
    "schema_id": "019760a0-0001-7000-8000-000000000001"
  }' \
  "https://api.exelensia.com/v1/process"

Response

JSON
{
  "id": "019760a0-0030-7000-8000-000000000030",
  "file_id": "019760a0-0020-7000-8000-000000000020",
  "schema_id": "019760a0-0001-7000-8000-000000000001",
  "status": "PENDING",
  "createdAt": "2024-01-16T09:00:00.000Z",
  "updatedAt": "2024-01-16T09:00:00.000Z"
}

After submitting, poll GET /v1/results filtered by your schema_id to check when results become available.

Status Codes

StatusDescription
201Process job created
400Invalid request body
401Missing or invalid authentication
404File or schema not found

On this page

  • Endpoints
  • GET /v1/process
  • POST /v1/process