Skip to main content
POST
/
session
/
{session_external_id}
/
update
Update user session and continue conversation
curl --request POST \
  --url https://main.treble.ai/session/{session_external_id}/update \
  --header 'content-type: <content-type>' \
  --data '{
  "user_session_keys": [
    {
      "key": "order",
      "value": "1 Cheeseburger, 2 Sodas"
    }
  ]
}'
{
  "message": "Session updated successfully",
  "session_id": "f33b4734a2e5db671b59877ed3f662ec1f6332a0418c25de4868e35a"
}

Headers

content-type
enum<string>
required
Available options:
application/json

Path Parameters

session_external_id
string
required

External ID of the user's session. Obtained from the 'session_external_id' field in the webhook response triggered by the user's first interaction.

Body

application/json

Information of the session keys to be updated

user_session_keys
object[]
required

List of user session keys to be updated

Response

Session updated successfully

message
string

Confirmation message

session_id
string

ID of the updated session

I