Previews
Revoke a preview link
DELETE
/preview-sessions/{id}Needscontent.viewStops the link working right away. Idempotent.
Authorization
secretKeyheader
AuthorizationBearer <sk_…>A secret API key from Settings → API keys. It acts with its creator's role.
Path Parameters
id*stringThe session's id.
Response Body
OK
application/json- response
success*unknownShell
curl -X DELETE 'https://app.cueston.com/api/preview-sessions/string'Example Response
JSON
{
"success": true
}Create a preview linkPOST
A link that opens your app with drafts showing — only for whoever opens it, until it expires. `launchUrl` already has the token appended. The token (`cpv_…`) is shown once.
Get the workspaceGET
The workspace your key belongs to, your role, keys for the snippet and whether production needs approval.