Hosting preview share
post/hosting/sites/{id}/deployments/{dep}/share
A link to a preview on its own address, signed and expiring, kept out of search results.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Mcp
rivier_hosting_preview_share- Graphql
Mutation.hostingPreviewShare- Sdk
hosting.preview.share- Cli
hosting preview share- Events
hosting.preview.shared
Parameters
- idstring (uuid)requiredIn the path
- depstring (uuid)requiredIn the path
Request bodyapplication/json, required
- ttlMinutesintegerAt least 1. At most 10080.
Responses
- 201application/jsonSuccess
- urlstringrequired
- expiresAtstringrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring