---
title: "Get social preview token"
method: GET
path: "/v1/social-accounts/preview-token"
tags: ["social-accounts"]
---

# Get social preview token

`GET /v1/social-accounts/preview-token`

## Request

- Base URL: `https://api.brixsignage.com`
- URL: `https://api.brixsignage.com/v1/social-accounts/preview-token`
- Auth: HTTP bearer

Get a short-lived token used to preview a live social app before it is published to a screen. Pass this token as the dt query parameter when calling social feed endpoints from a preview. The token is issued only for your own workspace and cannot be requested for another one.

## Response `200`

Success.

- object
  - `data` object, required
    - `token` string, required: A new short-lived token that lets an app preview read this workspace's social feeds (the `dt` parameter). Minted on each call.
    - `expiresIn` integer, required: Seconds until it expires (1800).

## Other responses

- `401`: Missing, expired or revoked bearer token.
- `403`: The token lacks the permission this operation needs (see `x-brix-permission`).
- `5XX`: Server error. The body carries a `requestId` to quote to support.

---

[API](https://skmtc.dev/brixsignage/apis/brix-api.md) · [All operations](https://skmtc.dev/brixsignage/apis/brix-api/llms.txt) · [OpenAPI document](https://skmtc.dev/brixsignage/apis/brix-api/revisions/02fd3665dc7d?raw)
