Docs
Skip to Content
API referenceMint a preview token
cmsPreview tokens

Mint a preview token

A token that reads this project's content with drafts and pending changes, for one hour, on `api.` only (`Authorization: Preview <token>`).

POST
/v1/cms/projects/{projectId}/preview/tokens

Authorization

apiKey
headerAuthorizationBearer <token>

A project API key: pk_... (public, read published content) or sk_... (secret, the actions it was given).

Path Parameters

projectId*string

Response Body

The token.

application/json
  1. response
token*string

Send as Authorization: Preview <token>.

expiresAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.tintage.com/v1/cms/projects/string/preview/tokens'
Example Response
{  "token": "string",  "expiresAt": "2019-08-24T14:15:22Z"}
Was this page helpful?