ReferencePages
Create a draft preview token
Returns {token, preview_url} where preview_url is "?preview=". The token is a signed JWT that renders the draft for anyone holding the URL.
AuthorizationBearer <token>
Personal access token tied to a user account. Requires the X-Nimbu-Site header to scope requests.
In: header
X-Nimbu-Site<token>
Identifier of the site context when authenticating with a personal access token.
In: header
Path Parameters
page_id*string
Page identifier or draft-only id
Response Body
application/json
curl -X POST "https://example.com/pages/string/draft/preview_token"{
"token": "eyJhbGciOiJIUzI1NiJ9.eyJwYWdlX2lkIjoiNjZmMWEyYjNjNGQ1ZTZmN2E4YjljMGQwIiwicHVycG9zZSI6ImRyYWZ0X3ByZXZpZXcifQ.dGhpc2lzYXNpZ25hdHVyZXBhZGRpbmdmb3Jkb2Nz",
"preview_url": "https://example.com/live?preview=eyJhbGciOiJIUzI1NiJ9.eyJwYWdlX2lkIjoiNjZmMWEyYjNjNGQ1ZTZmN2E4YjljMGQwIiwicHVycG9zZSI6ImRyYWZ0X3ByZXZpZXcifQ.dGhpc2lzYXNpZ25hdHVyZXBhZGRpbmdmb3Jkb2Nz"
}