Skip to content
Go to Micro

Realtime

Create a realtime streaming ticket
realtime.create_ticket() -> RealtimeCreateTicketResponse
POST/v2/realtime/ticket
ModelsExpand Collapse
class RealtimeCreateTicketResponse:
expires_in: int

Seconds until the ticket expires. Refresh (call the endpoint again) before reconnecting.

ticket: str

Short-lived token authenticating a realtime WebSocket connection. Pass as the token query parameter when connecting.

ws_url: Optional[str]

WebSocket URL for this environment (wss://stream.developers[.staging].micro.so). Connect here with the ticket as the token query parameter.