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
1{
2 "token": "eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIiwiY2giOiJwdWMubHZoLm1lIiwidHlwIjoiU0FUIn0.."
3}

Example

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9token = client.fabric.tokens.create_embed_token(token="click-to-call-token")
10print(f"Embed token: {token['token']}")