POST /sessions/{session_id}/messages

Send a message to a session.

MethodPath
POST/v1/sessions/{session_id}/messages

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.

Path parameters

session_idstringrequired
curl -X POST "https://api.ellipsis.dev/v1/sessions/{session_id}/messages" \
  -H "Authorization: Bearer $ELLIPSIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message":"..."}'

Request

Example request body
{
"idempotency_key": "string",
"message": "string"
}

Body parameters

idempotency_keystring

Optional retry-safety key, unique per (session, key): a retry with the same key returns the original message — no duplicate message, no double turn, no double spend. The SDK auto-generates one per send.

messagestringrequired

The message text.

Response

Example response · 200
{
}

On this page

No Headings
Schedule a demo