REST API
One POST endpoint, two headers, JSON in / JSON out. The platform handles system prompt injection, conversation history, MCP tool round-trips, and response storage.
The whole API in one request
X-Api-Key
X-Agent-Id
Content-Type
{
"message": "Hello, agent!",
"conversation_id": null
}curl -X POST https://api.sentientone.ai/v1/chat \
-H "Content-Type: application/json" \
-H "X-Api-Key: sk-so-YOUR_KEY" \
-H "X-Agent-Id: YOUR_AGENT_ID" \
-d '{ "message": "Hello!" }'That's it. X-Api-Key authenticates your account; X-Agent-Id selects which configured agent runs the request; the body carries the user's message and (optionally) the conversation id you want to continue.
What to read
Authentication
Headers, key formats, and where to find each value.
Read moreChat Endpoint
Request body fields, response shape, and multi-turn handling.
Read moreStreaming
Server-Sent Events for progressive token delivery.
Read moreError Codes
Every error the platform can return — with fixes.
Read moreRate Limits
Per-account quotas, response headers, and retry strategy.
Read morePerformance
Prompt caching, auto-retries, token optimization.
Read moreCode Examples
Drop-in snippets — Python, JavaScript, TypeScript, C#, cURL.
Read moreTry before you wire