Skip to content
API Reference
Realtime

Create realtime ticket

Exchange your API key (or session) for a short-lived ticket that authenticates a connection to the realtime object-change stream. Open a WebSocket to the push endpoint with the returned ticket as the token query parameter. The ticket is single-purpose and expires quickly; call this again to obtain a fresh one before reconnecting.

POST/v2/realtime/ticket

Exchange your API key (or session) for a short-lived ticket that authenticates a connection to the realtime object-change stream. Open a WebSocket to the push endpoint with the returned ticket as the token query parameter. The ticket is single-purpose and expires quickly; call this again to obtain a fresh one before reconnecting.

x-api-key<token>

Public API key generated from Micro settings. Sent as the x-api-key header and validated by AWS API Gateway in front of the service.

In: header

Response Body

application/json

application/json

application/json

curl -X POST "https://developers.micro.so/v2/realtime/ticket" \  -H "x-api-key: $MICRO_API_KEY"
{  "ticket": "string",  "expires_in": 0,  "ws_url": "string"}
micro.so