v3

latestOpenAPI 3.1.02026-08-0755220214.3 KB
auth

Create Session Token

Creates a short-lived session token that can be used to authenticate WebSocket connections. Session tokens are useful for client-side applications where you don't want to expose your API key.

post/auth/session_token

Headers

Authorizationstring required

Bearer authentication header of the form Bearer <PHONIC_API_KEY>. Manage your API keys here.

Request body

ttl_secondsinteger

Time-to-live for the session token in seconds.

Response

Success response

session_tokenstring required

The session token to use for authentication.

expires_atstring date-time required

When the session token expires.