Skip to main content
POST
/
agent
/
v1
/
chat
/
{id}
/
message
curl -X POST "https://api.case.dev/agent/v1/chat/%3Cstring%3E/message" \ -H "Authorization: Bearer $CASEDEV_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "parts": [ { "type": "text", "text": "<string>" } ] }'
{
  "statusCode": 123,
  "statusMessage": "<string>",
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Path Parameters

id
string
required

Chat session ID

Body

application/json

Message payload following the AI SDK UIMessage format. The body is passed through 1:1 to the underlying chat runtime session. Currently only text parts are supported.

parts
object[]

Message content parts. Currently only "text" type is supported. Additional types (e.g. file, image) may be added in future versions.

Response

Upstream chat runtime response with per-turn usage metadata when available