Skip to content

Send an inbound message to a session task.

POST
/v1/sessions/{session_id}/tasks/{task_id}/messages
curl --request POST \
--url https://app.everruns.com/api/v1/sessions/example/tasks/example/messages \
--header 'Content-Type: application/json' \
--data '{ "content": [ { "text": "example", "type": "text" } ], "in_reply_to": "example", "text": "example" }'
session_id
required
string

Session ID

task_id
required
string

Task ID

Media type application/json

Request body for posting an inbound task message.

object
content

Structured message parts (alternative to text).

Array | null
One of:
object
text
required
string
type
required
string
Allowed values: text
in_reply_to

Input request ID this message answers, when applicable.

string | null
text

Plain-text message (alternative to content).

string | null

Recorded task message

Media type application/json

A message exchanged between a session and one of its tasks.

object
content
required
Array
One of:
object
text
required
string
type
required
string
Allowed values: text
created_at
required
string format: date-time
direction
required

Direction of a task message. Inbound = session → task.

string
Allowed values: inbound outbound
id
required

tmsg_* public ID.

string
in_reply_to

Set when this message answers a TaskInputRequest.

string | null
task_id
required
string
Example
{
"content": [
{
"type": "text"
}
],
"direction": "inbound"
}

Empty message

Session or task not found