Recommended endpoint
Minimal request
cURL example
Python example
Node.js example
Best practices
- Claude returns SSE events rather than one final JSON payload
- Preserve content-block boundaries when parsing streamed output
- If you also enable tools or thinking, your event parser must support more than plain text deltas
