---
title: "Mint a 10-minute preview token for the signed-in member"
description: "Any current member of the workspace may preview their own public profile, including an unpublished draft. The token is accepted only by the public preview routes. It never records a page open. Returns 503 when the signing key can't be read (migration 20261009h not applied).\n"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Rep profiles

`GET /api/rep-profiles/me/preview-token`

Any current member of the workspace may preview their own public profile, including an unpublished draft. The token is accepted only by the public preview routes. It never records a page open. Returns 503 when the signing key can't be read (migration 20261009h not applied).

## Header parameters

- `x-workspace-id` (`get/api/rep-profiles/me/preview-token.header.x-workspace-id`; string, optional) — Workspace to preview. Membership is re-read from the database.

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.channelautomation.com/api/rep-profiles/me/preview-token
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/rep-profiles/me/preview-token';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/rep-profiles/me/preview-token"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

Preview token and absolute preview URL.

### 400

Workspace is missing.

### 403

The caller is not a member of the workspace.

### 503

Preview host or signing secret is not configured.


Source: https://developer.channelautomations.com/api/get-api-rep-profiles-me-preview-token/index.md
