Skip to main content
POST
/
v1
/
chat
/
async
Async Chat
curl --request POST \
  --url https://api.superdocs.app/v1/chat/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "<string>",
  "session_id": "<string>",
  "document_html": "<string>",
  "user_id": "<string>",
  "image_attachments": [
    {
      "id": "<string>",
      "name": "<string>",
      "base64Data": "<string>",
      "mimeType": "<string>",
      "size": 123
    }
  ],
  "async_mode": true,
  "model_tier": "<string>",
  "thinking_depth": "<string>",
  "approval_mode": "<string>"
}
'
{
  "job_id": "<string>",
  "session_id": "<string>",
  "status": "<string>",
  "message": "Chat request queued for processing"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Body

application/json

Start an async chat request that processes in the background.

message
string
required

Your message to the AI assistant.

session_id
string
required

Unique session identifier. Reuse to continue a conversation.

document_html
string | null

Current document HTML. Include data-chunk-id attributes on elements to enable targeted AI edits.

user_id
string | null

User identifier. Automatically set from authentication — typically omit this.

image_attachments
ImageAttachmentData · object[] | null

Inline images for vision-based analysis (base64-encoded).

async_mode
boolean
default:true

Must be true for async processing. Included for backward compatibility.

model_tier
string | null

AI model to use: 'core' (default, fast), 'turbo' (fastest), 'pro' (advanced reasoning), 'max' (most capable).

thinking_depth
string | null

Reasoning depth: 'fast', 'balanced' (default), or 'deep'. Controls how much analysis the AI performs.

approval_mode
string | null

Change review mode: 'approve_all' (default, auto-applies changes) or 'ask_every_time' (pauses for your review).

Response

Successful Response

Response from starting an async chat request.

job_id
string
required

Job identifier. Poll GET /v1/jobs/{job_id} for status and results.

session_id
string
required

Session identifier for this conversation.

status
string
required

Initial job status (always 'pending').

message
string
default:Chat request queued for processing

Human-readable status message.