Sensible · Arazzo Workflow

Sensible List Document Types Then Extract

Version 1.0.0

Confirm a document type exists in the account before submitting an asynchronous extraction against it.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub ArazzoWorkflows

Provider

sensible-so

Workflows

list-document-types-then-extract
List account document types and then submit an asynchronous extraction against the chosen type and config.
Lists the document types in the account, then submits a document URL for asynchronous extraction under the supplied document type and config and returns the extraction id.
2 steps inputs: apiKey, configName, documentType, documentUrl outputs: documentTypes, extractionId
1
listDocumentTypes
List all document types defined in the Sensible account so the caller can confirm the target type exists before extracting.
2
submitExtraction
Submit the document URL for asynchronous extraction under the chosen document type and config, and capture the returned extraction id.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Sensible List Document Types Then Extract
  summary: Confirm a document type exists in the account before submitting an asynchronous extraction against it.
  description: >-
    A guarded extraction flow. The workflow first lists the document types
    defined in the Sensible account so the caller can confirm the target type
    exists, then submits an asynchronous extraction from a document URL against
    that type and config and returns the extraction id for later retrieval.
    This avoids firing an extraction against a misspelled or non-existent
    document type. Every step spells out its request inline, including the
    Bearer authorization.
  version: 1.0.0
sourceDescriptions:
- name: documentApi
  url: ../openapi/sensible-so-document-api-openapi.yml
  type: openapi
- name: documentTypeApi
  url: ../openapi/sensible-so-document-type-api-openapi.yml
  type: openapi
workflows:
- workflowId: list-document-types-then-extract
  summary: List account document types and then submit an asynchronous extraction against the chosen type and config.
  description: >-
    Lists the document types in the account, then submits a document URL for
    asynchronous extraction under the supplied document type and config and
    returns the extraction id.
  inputs:
    type: object
    required:
    - apiKey
    - documentType
    - configName
    - documentUrl
    properties:
      apiKey:
        type: string
        description: Sensible API key used as the Bearer token.
      documentType:
        type: string
        description: The document type name to extract from.
      configName:
        type: string
        description: The config to use for extraction.
      documentUrl:
        type: string
        description: A publicly accessible or presigned URL returning the document bytes.
  steps:
  - stepId: listDocumentTypes
    description: >-
      List all document types defined in the Sensible account so the caller can
      confirm the target type exists before extracting.
    operationId: list-document-types
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      documentTypes: $response.body
  - stepId: submitExtraction
    description: >-
      Submit the document URL for asynchronous extraction under the chosen
      document type and config, and capture the returned extraction id.
    operationId: provide-a-download-url-with-config
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    - name: document_type
      in: path
      value: $inputs.documentType
    - name: config_name
      in: path
      value: $inputs.configName
    requestBody:
      contentType: application/json
      payload:
        document_url: $inputs.documentUrl
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      extractionId: $response.body#/id
      status: $response.body#/status
  outputs:
    documentTypes: $steps.listDocumentTypes.outputs.documentTypes
    extractionId: $steps.submitExtraction.outputs.extractionId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/sensible-so-list-document-types-then-extract-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.