NotifyHub
Openapi

Issue session token

POST
/v1/server/session-tokens

Issues an HMAC-HS256 JWT that a recipient's browser client can use to authenticate with the realtime gateway and the /v1/me/* endpoints. The token embeds the recipient's external id and optional scopes. Provide an expiresIn value (number of seconds or a duration string like "1h") to control token lifetime; defaults to 1 hour. If the recipient does not yet exist, it is created automatically with the provided profile fields.

Authorization

environmentKey
AuthorizationBearer <token>

In: header

Response Body

curl -X POST "https://loading/v1/server/session-tokens"
Empty