chats_send
Send a message to the connected assistant.
REST · POST /api/v1/operations/chats_send · MCP · chats_send
Required scope · read. Send Idempotency-Key in REST or requestKey in MCP. Replace example IDs and times before running.
Example request body
{
"provider": "codex",
"prompt": "Which posts reached the most people this week?"
}
REST returns the output below directly. In MCP read structuredContent.result. Check the current installation at /api/v1/openapi.json.
For 401 check credential validity. For 403 inspect the role, scopes and selected accounts. For 409 reread the record before retrying.
JSON Schema · Input
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"chatId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"projectId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"provider": {
"type": "string",
"const": "codex"
},
"model": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 16000
}
},
"required": [
"provider",
"prompt"
],
"additionalProperties": false
}
JSON Schema · Output
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status": {
"type": "string"
},
"chatId": {
"type": "string"
}
},
"required": [
"id",
"status",
"chatId"
],
"additionalProperties": {}
}