# Product preview tools

[All tool areas](/docs/tools.md). Each tool acts within your access.

## Product preview

### get_product_preview_link

Get a link, good for 1 hour, to a product's booking page as guests will see it, whether or not it's on sale (a draft, on sale, or archived): read-only, with a banner saying it's a preview, and no way to hold or book. Takes the product and, when it's offered at more than one location, the location to show. Give the link to the person who asked, never to a guest: a draft stays hidden from guests without it.

Reads · Members of an organization · Needs products:read

#### Input

- `productId` — string; required. The product's id, from list_products
- `locationId` — string; optional. The location whose booking page to show; left out, the product's only location

#### Output

- `url` — string; required. The preview page's address, with its signed token format: "uri"
- `expiresAt` — string; required. When the link stops working (1 hour after it was made) format: "date-time"
