Create a Subscriber Token.
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice, Messaging, Fax, or Video.
A unixtime (the number of seconds since 1970-01-01 00:00:00) at which the token should no longer be valid. Defaults to ‘two hours from now’
Binds the token to a specific device or browser session, letting the holder refresh it without going through your backend. The Browser SDK generates this value automatically when starting a session — forward it to your backend when requesting a token, so tie the token to that client.
Without fingerprint, your backend can still refresh the token using
the companion refresh_token
returned in this response.
Grants the token’s holder permission to refresh it directly from the
Browser SDK client. Pair with fingerprint to bind the token to a
device.
Without this scope, your backend can still refresh the token using the
companion refresh_token.
If sat:refresh is set without fingerprint, the token’s lifetime is
limited to 60 seconds.
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.
Example: