REST ClientFabricTokens

create_embed_token

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

from signalwire.rest import RestClient
client = RestClient(
project="your-project-id",
token="your-api-token",
host="your-space.signalwire.com",
)
token = client.fabric.tokens.create_embed_token(token="click-to-call-token")
print(f"Embed token: {token['token']}")