Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.clearmaas.com/llms.txt

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

/v1/messages is ClearMaas’s first-class Anthropic surface — the exact Anthropic Messages API shape. Use this when you want native Anthropic features (content blocks, tool use, prompt caching) and direct access to the protocol.

Minimal request

curl https://api.clearmaas.com/v1/messages \
  -H "Authorization: Bearer sk-clearmaas-..." \
  -H "Content-Type: application/json" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "anthropic/claude-sonnet-4.6",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Streaming (SSE named events)

curl ... -d '{... "stream": true}'
Anthropic uses named events (not OpenAI’s data: [DONE]):
event: message_start
data: {...}

event: content_block_delta
data: {...}

event: message_stop
data: {...}
See Advanced / Streaming for the full event shapes.

See also