curl --request POST \ --url https://{capsule-id}.sid.ai/chat/completions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "messages": [ { "role": "<string>", "content": "<string>" } ] }'
Bearer authentication header of the form Bearer <API_KEY>. API keys can be generated in the dashboard.
<API_KEY>
Array of messages in the conversation
Show child attributes
Role of the message sender (e.g., 'user' or 'assistant')
Content of the message
Successful response
Was this page helpful?