04 · sessions

Sessions: init, auto and history

Open a session before the first message, or let the server resolve it. The number can be international (+33…, +225…) or national — in which case your workspace’s default country applies.

  • POST session/init: resolves or creates the session and returns recent history — no AI call.
  • autoSession: true: the server reuses the latest fresh session of the (botId, msisdn) pair, sessionId optional.
  • GET session/history?botId=…&sessionId=…: read history back server-side.
Session — cURL
curl -X POST https://api.votredomaine.com/api/v1/re-act-agent/session/init \
  -H "Content-Type: application/json" \
  -d '{
    "botId": "VOTRE_BOT_ID",
    "msisdn": "0700000000"
  }'

// → { "sessionId": "…", "botId": "VOTRE_BOT_ID", "resumed": false, "history": [] }
Deep Agent StudioUse cases© 2026 Deep Agent Studio