# Sensible

> Extract structured data from PDFs and other documents with your Sensible document types and get the results in your workflows.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/sensible

## Actions

### Create document type

Create a document type to hold configurations for one kind of document.

**Inputs**

- Name (`name`, text, required): A name of 3 to 128 lowercase letters, numbers and underscores, such as insurance_quote.
- Description (`description`, text): What kind of documents it is for.
- OCR engine (`ocr_engine`, text): Which engine reads text in scanned documents. One of: `amazon`, `microsoft`, `google`.
- Configuration matching (`fingerprint_mode`, text): How Sensible picks a configuration for a document. One of: `fallback_to_all` (Try every configuration if none matches), `strict` (Only configurations whose fingerprints match).

**Outputs**

- `data` (object): The document type.

**Example output**

```json
{
  "data": {
    "created": "2026-11-20T14:03:12.000Z",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "insurance_quote",
    "schema": {
      "description": "Auto insurance quotes",
      "fingerprint_mode": "fallback_to_all",
      "ocr_engine": "amazon"
    }
  }
}
```

### Delete document type

Delete a document type with its configurations and reference documents. Past extractions stay.

**Inputs**

- Document type (`type_id`, text, required): The document type. Pick one, or use an ID from List document types.

**Outputs**

- `data` (object): Sensible's answer, empty when it worked.

**Example output**

```json
{
  "data": {}
}
```

### Extract from document URL

Start extracting data from a document at a public link, using the best configuration in a document type.

**Inputs**

- Document type (`document_type`, text, required): The document type to extract with. Pick one, or enter its name, such as insurance_quote.
- Document URL (`document_url`, text, required): A public link that downloads the document.
- File type (`content_type`, text): The document's file type. Sensible recommends giving it. One of: `application/pdf` (PDF), `image/jpeg` (JPEG image), `image/png` (PNG image), `image/tiff` (TIFF image), `application/msword` (Word (.doc)), `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (Word (.docx)), `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (Excel (.xlsx)), `application/vnd.ms-excel` (Excel (.xls)).
- Environment (`environment`, text): Which published configurations to prefer. Production if left empty. One of: `production`, `development`.
- File name (`document_name`, text): A file name to show with the extraction.
- Webhook URL (`webhook_url`, text): A URL Sensible should post the results to when the extraction finishes.

**Outputs**

- `data` (object): The extraction that was started.

**Example output**

```json
{
  "data": {
    "created": "2026-11-20T14:03:12.000Z",
    "document_name": "quote.pdf",
    "environment": "production",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "WAITING",
    "type": "insurance_quote"
  }
}
```

### Extract from document URL with configuration

Start extracting data from a document at a public link, using a configuration you choose.

**Inputs**

- Document type (`document_type`, text, required): The document type to extract with. Pick one, or enter its name, such as insurance_quote.
- Configuration (`config_name`, text, required): The configuration's name, from List configurations.
- Document URL (`document_url`, text, required): A public link that downloads the document.
- File type (`content_type`, text): The document's file type. Sensible recommends giving it. One of: `application/pdf` (PDF), `image/jpeg` (JPEG image), `image/png` (PNG image), `image/tiff` (TIFF image), `application/msword` (Word (.doc)), `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (Word (.docx)), `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (Excel (.xlsx)), `application/vnd.ms-excel` (Excel (.xls)).
- Environment (`environment`, text): Which published configurations to prefer. Production if left empty. One of: `production`, `development`.
- File name (`document_name`, text): A file name to show with the extraction.
- Webhook URL (`webhook_url`, text): A URL Sensible should post the results to when the extraction finishes.

**Outputs**

- `data` (object): The extraction that was started.

**Example output**

```json
{
  "data": {
    "created": "2026-11-20T14:03:12.000Z",
    "document_name": "quote.pdf",
    "environment": "production",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "WAITING",
    "type": "insurance_quote"
  }
}
```

### Extract portfolio from URL

Start splitting a file that bundles several documents into its parts and extracting each one.

**Inputs**

- Document URL (`document_url`, text, required): A public link that downloads the file.
- Document types (`types`, list, required): The names of the document types the file may contain.
- File type (`content_type`, text): The file's type. One of: `application/pdf` (PDF), `image/jpeg` (JPEG image), `image/png` (PNG image), `image/tiff` (TIFF image), `application/msword` (Word (.doc)), `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (Word (.docx)), `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (Excel (.xlsx)), `application/vnd.ms-excel` (Excel (.xls)).
- Split by (`segment_documents_with`, text): How Sensible finds where each document starts. One of: `llm` (AI), `fingerprints` (Configuration fingerprints).
- Environment (`environment`, text): Which published configurations to prefer. Production if left empty. One of: `production`, `development`.
- File name (`document_name`, text): A file name to show with the extraction.
- Webhook URL (`webhook_url`, text): A URL Sensible should post the results to when the extraction finishes.

**Outputs**

- `data` (object): The extraction that was started.

**Example output**

```json
{
  "data": {
    "created": "2026-11-20T14:03:12.000Z",
    "environment": "production",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "segment_documents_with": "llm",
    "status": "WAITING",
    "types": [
      "insurance_quote"
    ]
  }
}
```

### Get configuration

Get a configuration's SenseML and its versions.

**Inputs**

- Document type (`type_id`, text, required): The document type. Pick one, or use an ID from List document types.
- Configuration (`config_name`, text, required): The configuration's name, from List configurations.

**Outputs**

- `data` (object): The configuration.

**Example output**

```json
{
  "data": {
    "configuration": "anyco",
    "content_type": "application/pdf",
    "created": "2026-11-20T14:03:12.000Z",
    "name": "insurance_quote",
    "version_id": "Xk3Pq1Zr8yT2",
    "versions": [
      {
        "datetime": "2026-11-20T14:03:12.000Z",
        "draft": false,
        "environments": [
          "production"
        ],
        "note": "First published version",
        "published_by": "Jane Doe",
        "version_id": "Xk3Pq1Zr8yT2"
      }
    ]
  }
}
```

### Get CSV file of extraction

Get a link to a CSV file of an extraction's data.

**Inputs**

- Extraction (`extraction_id`, text, required): The extraction's ID.

**Outputs**

- `data` (object): The download link.

**Example output**

```json
{
  "data": {
    "url": "https://sensible-so-utility-bucket.s3.amazonaws.com/example.xlsx"
  }
}
```

### Get document type

Get one document type and its settings.

**Inputs**

- Document type (`type_id`, text, required): The document type. Pick one, or use an ID from List document types.

**Outputs**

- `data` (object): The document type.

**Example output**

```json
{
  "data": {
    "created": "2026-11-20T14:03:12.000Z",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "insurance_quote",
    "schema": {
      "description": "Auto insurance quotes",
      "fingerprint_mode": "fallback_to_all",
      "ocr_engine": "amazon"
    }
  }
}
```

### Get email processor

Get one email processor.

**Inputs**

- Email processor (`processor`, text, required): The processor's name. Pick one, or enter it.

**Outputs**

- `data` (object): The email processor.

**Example output**

```json
{
  "data": {
    "bodySpec": {
      "docTypeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "kind": "doctype"
    },
    "created": "2026-11-20T14:03:12.000Z",
    "name": "insurance_quote"
  }
}
```

### Get Excel file of extraction

Get a link to an Excel spreadsheet of an extraction's data.

**Inputs**

- Extraction (`extraction_id`, text, required): The extraction's ID.

**Outputs**

- `data` (object): The download link.

**Example output**

```json
{
  "data": {
    "url": "https://sensible-so-utility-bucket.s3.amazonaws.com/example.xlsx"
  }
}
```

### Get extraction

Get an extraction's status and, once complete, the data Sensible extracted.

**Inputs**

- Extraction (`extraction_id`, text, required): The extraction's ID, from an extract step or List extractions.

**Outputs**

- `data` (object): The extraction.

**Example output**

```json
{
  "data": {
    "charged": 1,
    "completed": "2026-11-20T14:03:20.000Z",
    "configuration": "anyco",
    "configuration_version": "Xk3Pq1Zr8yT2",
    "content_type": "application/pdf",
    "coverage": 0.92,
    "created": "2026-11-20T14:03:12.000Z",
    "document_name": "quote.pdf",
    "download_url": "https://sensible-so-utility-bucket.s3.amazonaws.com/example.pdf",
    "environment": "production",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "page_count": 2,
    "parsed_document": {},
    "reviewStatus": "APPROVED",
    "status": "COMPLETE",
    "type": "insurance_quote",
    "validation_summary": {
      "errors": 0,
      "fields": 10,
      "fields_present": 9,
      "skipped": 0,
      "warnings": 1
    }
  }
}
```

### Get extraction statistics

Get each configuration's daily extraction coverage over a period.

**Inputs**

- From (`start_date`, date and time, required): The first day to report. The time of day is ignored.
- To (`end_date`, date and time, required): The last day to report. The time of day is ignored.
- Environments (`environments`, list): Only these environments. All if left empty. One or more of: `production`, `development`.

**Outputs**

- `data` (object): The statistics.

**Example output**

```json
{
  "data": {
    "statistics": [
      {
        "configuration_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "configuration_name": "anyco",
        "coverage_histogram": [
          0,
          0,
          1,
          4
        ],
        "date": "2026-11-20",
        "document_type_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "document_type_name": "insurance_quote",
        "environment": "production"
      }
    ]
  }
}
```

### List configuration versions

List a configuration's saved and published versions.

**Inputs**

- Document type (`type_id`, text, required): The document type. Pick one, or use an ID from List document types.
- Configuration (`config_name`, text, required): The configuration's name, from List configurations.

**Outputs**

- `data` (object): The versions.

**Example output**

```json
{
  "data": {
    "versions": [
      {
        "datetime": "2026-11-20T14:03:12.000Z",
        "draft": false,
        "environments": [
          "production"
        ],
        "note": "First published version",
        "published_by": "Jane Doe",
        "version_id": "Xk3Pq1Zr8yT2"
      }
    ]
  }
}
```

### List configurations

List the configurations in a document type.

**Inputs**

- Document type (`type_id`, text, required): The document type. Pick one, or use an ID from List document types.

**Outputs**

- `data` (list): The configurations.

**Example output**

```json
{
  "data": [
    {
      "created": "2026-11-20T14:03:12.000Z",
      "name": "insurance_quote",
      "versions": [
        {
          "datetime": "2026-11-20T14:03:12.000Z",
          "draft": false,
          "environments": [
            "production"
          ],
          "note": "First published version",
          "published_by": "Jane Doe",
          "version_id": "Xk3Pq1Zr8yT2"
        }
      ]
    }
  ]
}
```

### List document types

List the document types in your Sensible account.

**Inputs**: None.

**Outputs**

- `data` (list): The document types.

**Example output**

```json
{
  "data": [
    {
      "created": "2026-11-20T14:03:12.000Z",
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "insurance_quote",
      "schema": {
        "description": "Auto insurance quotes",
        "fingerprint_mode": "fallback_to_all",
        "ocr_engine": "amazon"
      }
    }
  ]
}
```

### List email processors

List the email processors that extract data from emails sent to Sensible.

**Inputs**: None.

**Outputs**

- `data` (list): The email processors.

**Example output**

```json
{
  "data": [
    {
      "bodySpec": {
        "docTypeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "kind": "doctype"
      },
      "created": "2026-11-20T14:03:12.000Z",
      "name": "insurance_quote"
    }
  ]
}
```

### List extractions

List past extractions, newest first, filtered as you choose.

**Inputs**

- Created on or after (`start_date`, date and time): Only extractions created at or after this time.
- Created on or before (`end_date`, date and time): Only extractions created at or before this time.
- Document types (`document_type_ids`, list): Only extractions of these document type IDs.
- Statuses (`statuses`, list): Only extractions with these statuses. One or more of: `WAITING`, `PROCESSING`, `COMPLETE`, `FAILED`.
- Environments (`environments`, list): Only extractions in these environments. One or more of: `production`, `development`.
- Review statuses (`review_statuses`, list): Only extractions with these review statuses. One or more of: `APPROVED`, `NEEDS_REVIEW` (Needs review), `REJECTED`.
- Minimum coverage (`min_coverage`, number): Only extractions with at least this coverage score, from 0 to 1.
- Maximum coverage (`max_coverage`, number): Only extractions with at most this coverage score, from 0 to 1.
- Limit (`limit`, number): How many to return on a page. Sensible returns 20 if left empty. At least 1.
- Next page (`continuation_token`, text): The next-page token from an earlier List extractions.

**Outputs**

- `data` (object): One page of extractions.

**Example output**

```json
{
  "data": {
    "continuation_token": "eyJpZCI6IjNmYTg1ZjY0In0",
    "extractions": [
      {
        "charged": 1,
        "completed": "2026-11-20T14:03:20.000Z",
        "configuration": "anyco",
        "coverage": 0.92,
        "created": "2026-11-20T14:03:12.000Z",
        "document_name": "quote.pdf",
        "environment": "production",
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "page_count": 2,
        "reviewStatus": "APPROVED",
        "status": "COMPLETE",
        "type": "insurance_quote"
      }
    ]
  }
}
```

### List reference documents

List the reference documents in a document type.

**Inputs**

- Document type (`type_id`, text, required): The document type. Pick one, or use an ID from List document types.

**Outputs**

- `data` (list): The reference documents.

**Example output**

```json
{
  "data": [
    {
      "configuration": "anyco",
      "created": "2026-11-20T14:03:12.000Z",
      "download_url": "https://sensible-so-utility-bucket.s3.amazonaws.com/example.pdf",
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "insurance_quote",
      "thumbnail_url": "https://sensible-so-utility-bucket.s3.amazonaws.com/thumb.png"
    }
  ]
}
```

### Update document type

Rename a document type or change its settings.

**Inputs**

- Document type (`type_id`, text, required): The document type. Pick one, or use an ID from List document types.
- Name (`name`, text): A new name of lowercase letters, numbers and underscores.
- Description (`description`, text): What kind of documents it is for.
- OCR engine (`ocr_engine`, text): Which engine reads text in scanned documents. One of: `amazon`, `microsoft`, `google`.
- Configuration matching (`fingerprint_mode`, text): How Sensible picks a configuration for a document. One of: `fallback_to_all` (Try every configuration if none matches), `strict` (Only configurations whose fingerprints match).

**Outputs**

- `data` (object): The document type.

**Example output**

```json
{
  "data": {
    "created": "2026-11-20T14:03:12.000Z",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "insurance_quote",
    "schema": {
      "description": "Auto insurance quotes",
      "fingerprint_mode": "fallback_to_all",
      "ocr_engine": "amazon"
    }
  }
}
```
