{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a signed JWT for previewing an account-level custom page before it is published.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/custom-pages_identifier","description":"Identifier of the Cloudflare account."}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/custom-pages_preview_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"custom-pages_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"custom-pages_preview_request":{"type":"object","properties":{"act":{"description":"The preview action type. Required for request parsing but not used in token generation. Typically set to \"preview\".","type":"string","examples":["preview"]},"target":{"description":"The target custom page type to preview (e.g. \"block:waf\"). Encoded as the \"endpoint\" claim in the resulting JWT.","type":"string","examples":["block:waf"]},"url":{"description":"The URL of the custom page content to preview. Encoded as the \"zone\" claim in the resulting JWT.","type":"string","format":"uri","examples":["https://example.com/error.html"]}},"required":["act","target","url"]}}},"name":"Create a preview token","id":"cloudflare.custom-pages-for-an-account-create-preview-token","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"act":"preview","target":"block:waf","url":"https://example.com/error.html"}},"maxRequests":1,"summary":false}}