CognitiveX Docs
API

POST /api/talk/stream

Talk Stream

POST /api/talk/stream

Talk Stream

Authentication: Authorization: Bearer <key> or X-API-Key: <key>. Create keys at developers.cognitivx.io/keys.

Parameters

NameInTypeRequiredDescription
X-Org-IDheaderstring | nullNo-

Request body

A JSON request body is required.

FieldTypeRequiredDescription
messagestringYes-
agent_slugstring | nullNo-
current_taskstring | nullNo-
scope_modestringNoDefaults to "tiered".
proposed_self_definitionstring | nullNo-
proposed_mandatestring | nullNo-
proposed_boundariesstring[] | nullNo-
proposed_agent_typestring | nullNo-

Example request

curl -X POST https://api.cognitivx.io/api/talk/stream \
  -H "Authorization: Bearer icog_..." \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Parsa prefers limit/offset pagination",
    "agent_slug": null,
    "current_task": null,
    "scope_mode": "tiered",
    "proposed_self_definition": null,
    "proposed_mandate": null,
    "proposed_boundaries": null,
    "proposed_agent_type": "semantic"
  }'

Example response

200 application/json

null

Responses

StatusDescription
200Success. Returns the response body shown below.
422Request validation failed. detail lists each offending field.