Server SDKs
Build AI agents, control calls, send messages, and more
Refresh an existing subscriber authentication token.
format: "jwt"
1{2 "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",3 "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."4}
1import { RestClient } from "@signalwire/sdk";23const client = new RestClient({4 project: "your-project-id",5 token: "your-api-token",6 host: "your-space.signalwire.com"7});89const refreshed = await client.fabric.tokens.refreshSubscriberToken({ refresh_token: "existing-refresh-token" });10console.log(`Refreshed token: ${refreshed.token}`);