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

Results

The Results API returns the structured data extracted from your documents. Results are created automatically when a process job completes. Each result is linked to the process job, file, and schema used.

Endpoints

GET /v1/results

Returns a paginated list of extraction results 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
schema_idstringNo—Filter results by schema UUID
include_extractionbooleanNofalseWhen true, includes the full extracted data object in each result

Request

Bash
curl -H "x-api-key: your_api_key_here" \
  "https://api.exelensia.com/v1/results?schema_id=019760a0-0001-7000-8000-000000000001&include_extraction=true"

Response (without include_extraction)

JSON
{
  "data": [
    {
      "id": "019760a0-0040-7000-8000-000000000040",
      "process_id": "019760a0-0030-7000-8000-000000000030",
      "file_id": "019760a0-0020-7000-8000-000000000020",
      "schema_id": "019760a0-0001-7000-8000-000000000001",
      "status": "SUCCESS",
      "createdAt": "2024-01-16T09:00:45.000Z",
      "updatedAt": "2024-01-16T09:00:45.000Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 1,
    "totalPages": 1
  }
}

Response (with include_extraction=true)

JSON
{
  "data": [
    {
      "id": "019760a0-0040-7000-8000-000000000040",
      "process_id": "019760a0-0030-7000-8000-000000000030",
      "file_id": "019760a0-0020-7000-8000-000000000020",
      "schema_id": "019760a0-0001-7000-8000-000000000001",
      "status": "SUCCESS",
      "extraction": {
        "invoice_number": "INV-2024-001",
        "date": "2024-01-15",
        "total": 1250.00,
        "vendor_name": "Acme Supplies Inc."
      },
      "createdAt": "2024-01-16T09:00:45.000Z",
      "updatedAt": "2024-01-16T09:00:45.000Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 1,
    "totalPages": 1
  }
}

Result Status Values

StatusDescription
SUCCESSExtraction completed successfully
PARTIALSome fields were extracted; others could not be found
FAILEDExtraction failed

Status Codes

StatusDescription
200Success
401Missing or invalid authentication

GET /v1/results/:id

Returns a single result by ID, always including the full extraction data.

Path Parameters

ParameterTypeRequiredDescription
idstringYesResult UUID

Request

Bash
curl -H "x-api-key: your_api_key_here" \
  "https://api.exelensia.com/v1/results/019760a0-0040-7000-8000-000000000040"

Response

JSON
{
  "id": "019760a0-0040-7000-8000-000000000040",
  "process_id": "019760a0-0030-7000-8000-000000000030",
  "file_id": "019760a0-0020-7000-8000-000000000020",
  "schema_id": "019760a0-0001-7000-8000-000000000001",
  "status": "SUCCESS",
  "extraction": {
    "invoice_number": "INV-2024-001",
    "date": "2024-01-15",
    "total": 1250.00,
    "vendor_name": "Acme Supplies Inc."
  },
  "createdAt": "2024-01-16T09:00:45.000Z",
  "updatedAt": "2024-01-16T09:00:45.000Z"
}

Status Codes

StatusDescription
200Success
401Missing or invalid authentication
404Result not found

On this page

  • Endpoints
  • GET /v1/results
  • GET /v1/results/:id