createEmbedToken

View as MarkdownOpen in Claude

Create an embed authentication token.

Request

tokenstringRequired
Click to Call Token

Response

tokenstringRequiredformat: "jwt"
Encrypted guest token.

Response Example

Response
{
"token": "eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIiwiY2giOiJwdWMubHZoLm1lIiwidHlwIjoiU0FUIn0.."
}

Example

import { RestClient } from "@signalwire/sdk";
const client = new RestClient({
project: "your-project-id",
token: "your-api-token",
host: "your-space.signalwire.com"
});
const token = await client.fabric.tokens.createEmbedToken({ token: "click-to-call-token" });
console.log(`Embed token: ${token.token}`);