Pistis
API referenceChanging a session

Hand the screen back

POST
/sessions/{id}/control/return

Control returns to the agent; note reaches it as your next message (once, however often you ask). The record shows who took over, for how long, and the note; never what was typed or shown.

Authorization

bearer
headerAuthorizationBearer <token>

An API token

Path Parameters

id*string

A session id

Request Body

application/json
  1. body
note?string

For the agent, at most 4000 characters

Response Body

The agent controls it

application/json
  1. response
holder*unknown
Example Request
curl -X POST 'http://127.0.0.1:7777/sessions/ses_6c1f2a0b9d3e4f5a6b7c/control/return' \  -H 'Content-Type: application/json' \  -d '{  "note": "Signed in; carry on from the dashboard."}'
Example Response
{  "holder": "agent"}