Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mind-e.co/docs/llms.txt

Use this file to discover all available pages before exploring further.

Initiate document processing for an uploaded file. The document goes through conversion (PDF/DOCX to markdown), chunking, and embedding generation.

Endpoint

POST /convert-document

Authentication

Required.

Request body

agentId
string
required
The agent ID the document belongs to.
documentId
string
required
The document ID to process.

Response

success
boolean
Whether processing was initiated.
callId
string
Processing job ID for status polling.
message
string
Status message.

Example

curl -X POST https://api.mind-e.co/convert-document \
  -H "Authorization: Bearer sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "agentId": "agent-id-here",
    "documentId": "doc-id-here"
  }'

Response

{
  "success": true,
  "callId": "call-abc123",
  "message": "Document processing started"
}
Document processing is asynchronous. Use Conversion Status to check progress. Processing typically takes 10–60 seconds depending on document size.