Chat

Ask questions against your documents with AI-powered answers and source citations.

POST /api/v1/chat

Ask a question and get an AI-powered answer with source citations. You can query specific files, a collection, or your entire library.

Headers

Name
Type
Description

Authorization*

string

Bearer YOUR_API_TOKEN

Content-Type*

string

application/json

Request Body

Name
Type
Required
Description

question

string

Yes

Your question

file_ids

array

No

List of file IDs to query. Omit to search entire library

collection_id

string

No

Collection ID to query (alternative to file_ids)

conversation_id

string

No

Continue a previous conversation for follow-up questions

thinking_mode

boolean

No

Enable advanced multi-step reasoning (Pro/Team only)

Query scoping

Scope
How

Entire library

Omit both file_ids and collection_id

Specific files

Set file_ids: ["id1", "id2"]

A collection

Set collection_id: "collection-uuid"

Example Request

Response (200: OK)

The sources array contains numbered references matching the [1], [2] citations in the answer. The source field indicates the page number (for documents) or timestamp (for audio/video).

Thinking mode

Set thinking_mode: true for complex questions that benefit from multi-step reasoning. The AI will iteratively search, assess confidence, and refine its answer. Available on Pro and Team plans.

Examples

Last updated