Ellipsis APIReferenceSessions

Send Agent Session Message

Post a human message into a durable (keyed) session's conversation. 409 for react/cron, non-interactive, and closed sessions. Returns the created message so the caller can track it by id; a retried send with the same idempotency_key returns the original message.

POST
/v1/sessions/{session_id}/messages

Post a human message into a durable (keyed) session's conversation.

409 for react/cron, non-interactive, and closed sessions. Returns the created message so the caller can track it by id; a retried send with the same idempotency_key returns the original message.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

session_id*Session Id

Header Parameters

user-agent?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A human message posted into a durable session's conversation. Delivered to the live agent at the next turn boundary, or wakes the session when idle.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/sessions/string/messages" \  -H "Content-Type: application/json" \  -d '{    "message": "string"  }'
{  "agent_session_id": "string",  "author": "string",  "body": "string",  "created_at": "2019-08-24T14:15:22Z",  "delivered_at": "2019-08-24T14:15:22Z",  "delivered_turn_id": "string",  "feed_seq": 0,  "id": "string",  "sender_attribution_id": "string",  "sender_attribution_type": "github_user",  "status": "pending"}