Contextual AI /extract API

The /extract API from Contextual AI — 9 operation(s) for /extract.

GitHub OpenAPI

Operations 15

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /extract/schemas List extraction schemas · List Schemas #
Ask an LLM
“Which JSON schemas have I defined for structured data extraction?”
“Can I search my extraction schemas?”
Tell an agent
List my extraction schemas.
Find extraction schemas matching {search}.
POST /extract/schemas Create an extraction schema · Create Schema #
Ask an LLM
“How do I define a JSON Schema that extracts structured data from documents?”
“What JSON Schema features does the extraction service support?”
Tell an agent
Create an extraction schema named {name} with definition {schema_definition}.
Create schema {name} described as {description}.
GET /extract/schemas/{schema_id} Get an extraction schema · Get Schema #
Ask an LLM
“What does a particular extraction schema define?”
“Can I look up one schema by ID?”
Tell an agent
Show extraction schema {schema_id}.
Get the definition of schema {schema_id}.
PUT /extract/schemas/{schema_id} Update an extraction schema · Update Schema #
Ask an LLM
“Can I change the JSON Schema a document is extracted against?”
“How do I rename or redescribe an existing extraction schema?”
Tell an agent
Rename extraction schema {schema_id} to {name}.
Update the definition of schema {schema_id} to {schema_definition}.
DELETE /extract/schemas/{schema_id} Delete an extraction schema · Delete Schema #
Ask an LLM
“How do I remove an extraction schema I no longer use?”
“Can I delete a JSON Schema definition?”
Tell an agent destructive · confirm first
Delete extraction schema {schema_id}.
Remove the schema {schema_id} permanently.
GET /extract/documents List documents for extraction · List Documents #
Ask an LLM
“Which PDF documents have I uploaded for structured extraction?”
“Can I filter my uploaded documents?”
Tell an agent
List my uploaded extraction documents.
Find documents matching {search}.
POST /extract/documents/upload Upload a document for extraction · Upload Document #
Ask an LLM
“How do I upload a PDF so it can be extracted with an extraction schema?”
“What file types and sizes are supported for document upload?”
Tell an agent
Upload {file} as an extraction document.
Add this PDF to my document library for structured extraction.
GET /extract/documents/{document_id} Get an uploaded document · Get Document #
Ask an LLM
“What information is stored about a document I uploaded?”
“Can I look up one uploaded document by ID?”
Tell an agent
Show uploaded document {document_id}.
Get the metadata for document {document_id}.
DELETE /extract/documents/{document_id} Delete an uploaded document · Delete Document #
Ask an LLM
“How do I remove a PDF document from my extraction library?”
“Can I delete an uploaded document?”
Tell an agent destructive · confirm first
Delete uploaded document {document_id}.
Remove document {document_id} from my library.
GET /extract/jobs List extraction jobs · List Jobs #
Ask an LLM
“Which structured extraction jobs have I started?”
“Can I filter jobs by status?”
Tell an agent
List my extraction jobs.
Show jobs with status {job_status}.
POST /extract/jobs Start an extraction job · Start Extraction Job #
Ask an LLM
“How do I extract structured data from a PDF using an extraction schema?”
“What do I need to start an extraction job?”
Tell an agent
Start an extraction job on document {document_id} using schema {schema_id}.
Extract data from {document_id} with schema {schema_id}, streaming results set to {stream}.
GET /extract/jobs/{job_id}/stream Resume streaming results for an extraction job · Resume Streaming Extraction #
Ask an LLM
“How do I continue receiving streamed results from an extraction job I started?”
“Can I resume the event stream for a running extraction job?”
Tell an agent
Resume streaming results for extraction job {job_id}.
Send the current state of job {job_id} and keep streaming new events.
GET /extract/jobs/{job_id} Get an extraction job's status · Get Job Status #
Ask an LLM
“Is my extraction job still running?”
“What results and failed subtrees does a running extraction job have?”
Tell an agent
Get the status of extraction job {job_id}.
Check whether job {job_id} has finished and show its accumulated results.
GET /extract/jobs/{job_id}/results Get an extraction job's results · Get Job Results #
Ask an LLM
“Where do I read the structured data extracted from a PDF?”
“Can I fetch the results of a completed extraction job?”
Tell an agent
Get the results of completed extraction job {job_id}.
Show the extracted data from job {job_id}.
PUT /extract/jobs/{job_id}/results Update an extraction job's results · Update Job Results #
Ask an LLM
“Can I overwrite the extracted results of a completed job?”
“How do I correct the output of an extraction job?”
Tell an agent
Replace the results of job {job_id} with {results}.
Overwrite the extracted output of completed job {job_id}.

Documentation

Specifications

Other Resources

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/contextual-ai:contextual-ai-extract-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

contextual-ai-extract-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Endpoints /extract API
  version: '1.0'
servers:
- url: https://api.contextual.ai/v1
security:
- BearerAuth: []
tags:


# --- truncated at 32 KB (41 KB total) ---
# Full source: https://artifacts.apis.io/contextual-ai/openapi/contextual-ai-extract-api-openapi.yml