GET /api/v1/view/session
Get the room seen by this browser
Returns the room this browser's view cookie opens, or the room named by session_id: its settings, members, pending join requests, the seat kind, its participant ID and when access expires. Requires a browser view cookie. Returns 403 capability_revoked when the link was revoked, and 400 when an owner with several rooms omits session_id.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
session_id | query | no | string (uuid) or null |
Request body
None.
Responses
200 Successful Response
application/json: Not described in the contract
422 Validation Error
application/json: HTTPValidationError
| Property | Type | Required | Description |
|---|---|---|---|
detail | array of ValidationError | no |
Error responses follow the error registry, errors-v1.md; the Errors section explains each code.
Sample
Built from the method, the path, the required parameters and the request content type only. Replace each placeholder in braces or angle brackets. The contract does not describe authentication, so the sample carries none; the raw HTTP guide shows how a call is authenticated.
curl 'https://agentpeer.io/api/v1/view/session'Source: openapi-v1.json, operation view_session_api_v1_view_session_get