Skip to main content
New to Corsair? See API access, authentication, and error handling.

Authenticators

create

authenticators.create Register your own OAuth app (client id and secret) for a provider’s connections Risk: write
Input Registers your own OAuth app for a provider; the client secret is sent once and never logged. Output

createConnection

authenticators.createConnection Create a connection through your own OAuth app; it starts syncing and processing pages, which is billed Risk: destructive
Input
Output: Record<string, any>

delete

authenticators.delete Delete an OAuth app registration Risk: destructive
Input Output

list

authenticators.list List your own OAuth apps registered for connections, paged by cursor Risk: read
Input Output

Connections

create

connections.create Create a non-OAuth connector such as S3, GCS, Freshdesk, Zendesk, Intercom or a web crawler, with its settings and credentials Risk: destructive
Input The path is singular: POST /connection, while every other connection route is plural. Non-OAuth providers only.
Output

createOAuthRedirectUrl

connections.createOAuthRedirectUrl Start an OAuth connector flow (Google Drive, Notion and the like) and get the short-lived redirect URL to send the user to Risk: write
Input Returns a short-lived OAuth redirect URL; it is an auth artifact, so the operation is a write. Output

delete

connections.delete Delete a connection. With keep_files false its documents are deleted too and cannot be recovered; with true the documents survive unlinked Risk: destructive · Irreversible
Input A POST to /connections/{id}/delete, not a DELETE method. With keep_files false the documents are deleted irreversibly; deletion runs asynchronously, so files can linger briefly either way. Output: Record<string, string>

get

connections.get Read one connection, including its sync state and limits Risk: read
Input Output

getStats

connections.getStats Read a connection’s document and page counts Risk: read
Input Output

list

connections.list List managed data connectors, paged by cursor Risk: read
Input Output

listSourceTypes

connections.listSourceTypes List the connector types Ragie supports, with the metadata each needs Risk: read
Input: empty object Output

setEnabled

connections.setEnabled Enable or disable a connection syncing Risk: write
Input Output

setLimits

connections.setLimits Set the monthly page limit on a connection; null removes the limit Risk: write
Input Output

sync

connections.sync Schedule a connector to sync as soon as possible; the sync itself runs in the background Risk: destructive
Input Output: empty object

update

connections.update Update a connection metadata, mode, partition strategy or page limit Risk: write
Input Sends partition_strategy and page_limit flat beside metadata and mode, per the saved SDK evidence; that body arrangement is unverified until a live key confirms it.
Output

Documents

create

documents.create Upload a file for ingestion. Processing runs in the background: poll documents.get until status is ready or failed Risk: destructive
Input Multipart upload; a metadata object is JSON-stringified inside its form field, the way the official SDK sends it. Returns at once with status pending; poll documents.get until ready or failed.
Output

createFromUrl

documents.createFromUrl Fetch a URL and ingest its content. Processing runs in the background: poll documents.get until status is ready or failed Risk: destructive
Input Returns at once with status pending; poll documents.get until ready or failed. Output

createRaw

documents.createRaw Ingest raw text. Processing runs in the background: poll documents.get until status is ready or failed Risk: destructive
Input Returns at once with status pending; poll documents.get until ready or failed. Output

delete

documents.delete Delete a document and its chunks. There is no restore call Risk: destructive · Irreversible
Input Output: empty object

get

documents.get Read one document, including its processing status: pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready or failed Risk: read
Input The job status read. Status walks pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, then ready or failed; the document is searchable from indexed. Output

getChunk

documents.getChunk Read one chunk of a document: its text, metadata and links Risk: read
Input Output

getChunkContent

documents.getChunkContent Download one chunk as text, audio, video or image (media_type), returned as a file Risk: read
Input Returns the chunk as a file in media_type (text/plain by default; audio/mpeg, video/mp4 or an image type for media chunks). range asks for part of an audio or video stream. Output: empty object

getChunks

documents.getChunks List the chunks a document was split into, paged by cursor Risk: read
Input Output

getContent

documents.getContent Read a document processed content as JSON. Audio and video media-type streaming is not wrapped Risk: read
Input Returns the default JSON answer with the extracted text. For audio and video media use documents.getChunkContent, which returns files. Output

getSource

documents.getSource Download the original file a document was made from Risk: read
Input Returns the original uploaded or fetched file as core file output. Output: empty object

getSummary

documents.getSummary Read the LLM summary of a document; unavailable for spreadsheets, JSON and documents over a million tokens Risk: read
Input Beta. Unavailable for xls, xlsx, csv and json documents and documents over a million tokens. Output

list

documents.list List documents with their processing status, paged by cursor; filter by a JSON metadata filter or partition Risk: read
Input Output

listElements

documents.listElements List the structural elements Ragie parsed from a document (titles, text, tables, images), paged by cursor Risk: read
Input Output

listEntities

documents.listEntities List the entities instructions extracted from one document, paged by cursor Risk: read
Input Output

patchMetadata

documents.patchMetadata Merge metadata onto a document; a null value deletes that key Risk: write
Input Output: object

updateFile

documents.updateFile Replace a document with a new file. Reprocessing runs in the background: poll documents.get until status is ready or failed Risk: destructive
Input Replaces the content and reprocesses; poll documents.get until ready or failed.
Output

updateFromUrl

documents.updateFromUrl Replace a document with content fetched from a URL. Reprocessing runs in the background: poll documents.get until status is ready or failed Risk: destructive
Input Replaces the content and reprocesses; poll documents.get until ready or failed. Output

updateRaw

documents.updateRaw Replace a document with new raw text. Reprocessing runs in the background: poll documents.get until status is ready or failed Risk: destructive
Input Replaces the content and reprocesses; poll documents.get until ready or failed. Output

Elements

get

elements.get Read one parsed document element Risk: read
Input Output

Instructions

create

instructions.create Create an entity extraction instruction; it runs on matching documents and their extraction is billed Risk: destructive
Input Runs on every matching document (and new ones while active); extraction is billed per page. scope: chunk runs once per chunk. Output

delete

instructions.delete Delete an instruction and the entities it extracted Risk: destructive · Irreversible
Input Output

list

instructions.list List entity extraction instructions Risk: read
Input: empty object Output

listEntities

instructions.listEntities List the entities one instruction extracted, paged by cursor Risk: read
Input Output

listExtractionLogs

instructions.listExtractionLogs List extraction attempts for an instruction with status and reasons, filterable by document, status and date Risk: read
Input Filter by document_ids, status (extracted, not_found, error) and created_after / created_before (ISO 8601). Output

update

instructions.update Change an instruction’s prompt, schema, filter or active flag Risk: write
Input Output

Partitions

create

partitions.create Create a partition with optional page and media limits and a metadata schema Risk: write
Input Output

delete

partitions.delete Delete a partition and every document in it Risk: destructive · Irreversible
Input Deletes the partition and every document in it; it cannot be undone. async: true answers at once and deletes in the background. Output

get

partitions.get Read a partition with its limits and usage stats Risk: read
Input Output

list

partitions.list List partitions with their limits, paged by cursor Risk: read
Input Output

setLimits

partitions.setLimits Set a partition’s monthly and maximum page and media limits Risk: write
Input Output

update

partitions.update Change a partition’s description, context awareness or metadata schema Risk: write
Input Output

Responses

create

responses.create Generate a grounded answer with the deep-search model. Bills LLM usage; poll responses.get until status is completed or failed Risk: destructive
Input Bills LLM usage with the deep-search model. Plan exhaustion answers 402 and is never retried. Poll responses.get until completed or failed. Output

get

responses.get Read a generated response, including its status and the final answer Risk: read
Input The job status read: in_progress, completed or failed. Output

Retrievals

retrieve

retrievals.retrieve Search ingested documents and return scored chunks, optionally reranked and filtered by metadata operators Risk: read
Input A read, and not documented as metered. filter takes the metadata operators eq,eq, ne, gt,gt, gte, lt,lt, lte, inandin and nin. Output

Webhook Endpoints

create

webhookEndpoints.create Register a webhook endpoint. The answer carries its signing secret (reads of the endpoint return it too); keep it somewhere safe Risk: write
Input The answer carries the signing secret for deliveries to this endpoint, so it is a write, never a read. Output

delete

webhookEndpoints.delete Delete a webhook endpoint registration; its signing secret stops working Risk: destructive · Irreversible
Input Output: empty object

get

webhookEndpoints.get Read one webhook endpoint registration Risk: read
Input Output

list

webhookEndpoints.list List the webhook endpoints registered to receive tenant events, paged by cursor. This plugin verifies and handles the deliveries (see webhooks) Risk: read
Input Output

update

webhookEndpoints.update Update a webhook endpoint name, URL, partition pattern or active flag Risk: write
Input Output