Docs

API reference · Static hosting

Who may open a static site's previews, its links and the domains they are served under

GET/v1/orgs/{org}/zones/{zone}/origins/{origin}/previews
Permission
hosting.deployments.read
Operation
hosting.previews.get

Parameters

NameInTypeRequiredNotes
orgpathstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
zonepathstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
originpathstringyesfor example "origin_01h455vb4pex5vsknk084sn02q"
x-obhut-management-assignmentheaderstringnoSelect one staff assignment. Direct membership remains the default. Bound API tokens use their stored source and ignore this selector. For example "masg_01h455vb4pex5vsknk084sn02q"

Response 200

FieldTypeRequiredNotes
publicbooleanyes
passwordbooleanyes
linksarray of objectyes
links[].idstringyesfor example "plink_01h455vb4pex5vsknk084sn02q"
links[].namestringyes1 to 64 characters
links[].createdAtstring (date-time)yesUTC, ISO 8601.
links[].expiresAtstring (date-time) or nullyes
links[].expiredbooleanyes
domainsarray of stringyes