Create a realtime session
const url = 'https://api.inside.chat/api/v1/realtime/sessions';const options = { method: 'POST', headers: { Origin: 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"website_ids":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.inside.chat/api/v1/realtime/sessions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Origin: example' \ --data '{ "website_ids": [ "example" ] }'Required scopes:
website_read,event_read
Data access: –
MCP tool: not available over MCP
Note: Write
Note:Originrequired
Create an app-only socket session, bounded to 20 per installation. No human cookie, native operator or richer subscription projection. Changed authorization requires a new session.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Exact canonical HTTPS origin bound to this session. Local loopback HTTP is allowed only in the local environment. Browser REST CORS is restricted to configured UI origins.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "website_ids": [ "example" ]}Responses
Section titled “Responses”Origin-bound single-use ticket. Authenticate the socket first frame within 5s. Idle reconnect window 2min, authority recheck 15s.
object
Single-use first-frame secret. Never put it in the URL or logs.
Unix seconds; at most 30s and never after the original credential deadline.
Example generated
{ "session_id": "example", "ticket": "example", "expires_at": 1}Closed request body or parameters are invalid.
Original REST credential or current authority is invalid.
Origin rejected.
Session is absent or not owned by the same exact credential/grant and origin.
Installation session or pending socket capacity reached.
App/ingress quota exceeded; observe Retry-After.
Required service/authority/storage is unavailable.