Logo

Create a message

POST
/conversations/{conversationId}/messages
/conversations/{conversationId}/messages

Request Body

application/jsonRequired

Creates a message

message
Required
string

The content of the message to be sent.

Path Parameters

conversationId
Required
integer

The conversation's unique identifier.

Header Parameters

x-llm-key
Required
string

The API key for the LLM provider (e.g., OpenAI).

curl -X POST "https://example.com/conversations/0/messages" \
  -H "x-llm-key: {{your_llm_provider_key}}" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "string"
  }'

Message created successfully