ApiChatTurn
Request body for POST /runs/{run_id}/chat/ (submit one turn). Same message shape as the websocket chat integration: a normal message (`content`), optional `metadata` merged into the run, and/or a function call (`role` + `data`).
Properties
| Name | Type | Description |
|---|---|---|
| content | string | Your agent-under-test's latest message. Submitting it returns a `turn_id`; poll GET /runs/{run_id}/chat/{turn_id}/ for the simulated user's reply. |
| metadata | object | Optional metadata merged into the run (last-write-wins). Can be sent alone. |
| role | string | Set to record a tool call instead of a message (no reply is generated). * `Function Call` - Function Call * `Function Call Result` - Function Call Result |
| data | object | Function-call payload: {id, name, arguments} for a call, {id, result} for a result. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/cekura-ai/json-schema/cekura-ai-api-chat-turn-schema.json",
"title": "ApiChatTurn",
"description": "Request body for POST /runs/{run_id}/chat/ (submit one turn). Same message shape\nas the websocket chat integration: a normal message (`content`), optional `metadata`\nmerged into the run, and/or a function call (`role` + `data`).",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/cekura-ai-runs-api-openapi.yml#/components/schemas/ApiChatTurn",
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "Your agent-under-test's latest message. Submitting it returns a `turn_id`; poll GET /runs/{run_id}/chat/{turn_id}/ for the simulated user's reply."
},
"metadata": {
"type": "object",
"additionalProperties": {},
"description": "Optional metadata merged into the run (last-write-wins). Can be sent alone."
},
"role": {
"enum": [
"Function Call",
"Function Call Result"
],
"type": "string",
"x-spec-enum-id": "96979c0bc176b860",
"description": "Set to record a tool call instead of a message (no reply is generated).\n\n* `Function Call` - Function Call\n* `Function Call Result` - Function Call Result"
},
"data": {
"type": "object",
"additionalProperties": {},
"description": "Function-call payload: {id, name, arguments} for a call, {id, result} for a result."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/cekura-ai-api-chat-turn"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.