***

title: createGuestToken
slug: /reference/typescript/rest/fabric/tokens/create-guest-token
description: Create a guest authentication token.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Create a guest authentication token.

<EndpointSchemaSnippet endpoint="POST /api/fabric/guests/tokens" />

## **Response Example**

<EndpointResponseSnippet endpoint="POST /api/fabric/guests/tokens" />

## **Example**

```typescript {9}
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.createGuestToken({ allowed_addresses: ["address-uuid"] });
console.log(`Guest token: ${token.token}`);
```