Skip to main content
POST
Create Message Endpoint

Authorizations

Authorization
string
header
required

Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.

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,
developer,
assistant
content
required
meta_data
Meta Data · object

Response

Success

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 July 31, 2026