Skip to main content
If you are using ChatGPT, Claude, Codex, or another MCP-aware client, start with CapOut MCP. This page covers the direct REST API.

1. Authenticate REST calls

Include your API key as the capout-api-key header.

2. Upload a document

The upload API supports both a fetchable url and an inline file_base64 payload.
Inline base64 uploads use the same endpoint with a different request body:
See Upload a document for Python and Node.js examples that turn a local file into the file_base64 value. Store the returned document_id and use it to track workflow completion: Expected shape:

3. Poll the document status

Typical response while work is still running:

4. Switch to realtime updates

Mint a short-lived token, then connect with SSE or WebSocket.
Browser-friendly SSE example:

5. Check remaining claims

Next: