cURL
curl --request POST \ --url https://api.example.com/v1/sessions/stop \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data ' { "reason": "USER_CLOSED" } '
{ "code": 100, "data": "<unknown>", "message": "<string>" }
Stop a session
UNKNOWN
USER_DISCONNECTED
SERVER_ERROR
IDLE_TIMEOUT
NO_CREDITS
USER_CLOSED
AVATAR_DELETED
MAX_DURATION_REACHED
ZOMBIE_SESSION_REAP
Successful Response
Was this page helpful?