Api reference
Subscribe a session to another session's events, delivered as hidden prompts
POST
/v1/sessions/{id}/subscriptionsAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
targetSessionId*string
events?array<>|null
once?boolean|null
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/sessions/string/subscriptions" \ -H "Content-Type: application/json" \ -d '{ "targetSessionId": "string" }'{ "id": "string", "subscriberSessionId": "string", "targetSessionId": "string", "events": [ "turn_ended" ], "once": true, "createdAt": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}