Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 851 Bytes

File metadata and controls

23 lines (13 loc) · 851 Bytes

createRealtimeToken

Mint a short-lived, single-use token that authorises one Realtime API connection. For browsers: EventSource cannot set headers, so this is what a page passes as ?token= instead of putting an API key in a URL. Inherits the calling credential's scope, expires in five minutes, and burns on first use. The stream itself is GET /v1/realtime — a subscription, not a request/response call, so it is contracted in sdks/spec/realtime.json rather than here.

HTTP: POST /v1/realtime/token

Parameters

None.

Returns

realtime-token-response — see the realtime-token-response schema.

Example

$res = $mk->createRealtimeToken();

← All methods · Docs · mailkite.dev