Skip to main content
POST
/
v1
/
threads
/
{thread_id}
/
messages
Create message
curl --request POST \
  --url https://flow.seekr.com/v1/threads/{thread_id}/messages \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "meta_data": {}
}
'
{
  "thread_id": "<string>",
  "role": "<string>",
  "content": "<string>",
  "id": "<string>",
  "object": "thread.message",
  "created_at": "2023-11-07T05:31:56Z",
  "parts": [
    {
      "type": "<string>",
      "text": "<string>",
      "id": "<string>",
      "metadata": {}
    }
  ],
  "agent_id": "<string>",
  "run_id": "<string>",
  "meta_data": {}
}

Authorizations

Authorization
string
header
required

Authorization Bearer Token

Headers

x-team-id
string | null

Path Parameters

thread_id
string
required

Query Parameters

include_parts
boolean
default:false

Body

application/json

Pydantic model for creating a thread message request.

Attributes: role (str): The role of the message sender. content (Union[str, list[InputMessage], list[OutputMessage]]): The content of the message. meta_data (Optional[dict[str, Any]]): Optional metadata dictionary.

role
enum<string>
required
Available options:
user,
system,
tool
content
required
meta_data
Meta Data · object

Response

Successful Response

Thread message shape returned by the thread API.

parts are opt-in so existing clients keep the previous response shape by default.

thread_id
string
required
role
string
required
content
required
id
string
object
string
default:thread.message
created_at
string<date-time>
parts
(MessageTextPart · object | MessageReasoningPart · object | MessageFilePart · object | MessageDataPart · object | MessageToolCallPart · object | MessageToolErrorPart · object | MessageToolResultPart · object)[] | null

A text part persisted alongside a thread message.

agent_id
string | null
run_id
string | null
meta_data
Meta Data · object
Last modified on June 18, 2026