Create Subscriber token
Changed onCreates a Subscriber Access Token (SAT) for a known Subscriber, identified by reference, and optionally updates that subscriber's profile. Call it from your server when a Browser SDK or other subscriber client needs to sign in. Tokens expire after two hours by default; bind one to a client with fingerprint and sat:refresh when that client should refresh its own access, or use Refresh Subscriber token from your backend.
Use Create Subscriber guest token for temporary access limited to selected resource addresses, or Create API token for server-side REST authentication.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice, Messaging, Fax, or Video.
Learn more about API scopes.
Request
- Base URLhttps://{Your_Space_Name}.signalwire.com
- URLhttps://{Your_Space_Name}.signalwire.com/api/fabric/subscribers/tokens
- AuthHTTP basic
Request body
Example request
{
"reference": "john.doe@example.com",
"expire_at": 1693823284,
"password": "password123",
"fingerprint": "Vg1h7IDV3AR6kTpCkZPHOVs32B81DX1naHiHbYoKXgY",
"scope": "sat:refresh",
"first_name": "John",
"last_name": "Doe",
"display_name": "John Doe",
"job_title": "Software Engineer",
"time_zone": "America/New_York",
"country": "US",
"region": "us-central",
"company_name": "SignalWire"
}Response
The request has succeeded.
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
- warning
removed the request property
- warning
removed the request property
- warning
Some revisions have not been checked yet.