Rivier/ Reference/ hosting

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)required
    In the path
  • depstring (uuid)required
    In the path

Request bodyapplication/json, required

  • ttlMinutesinteger
    At least 1. At most 10080.

Responses

  • 201application/json
    Success
    • urlstringrequired
    • expiresAtstringrequired
  • 400application/json
    The request was malformed
    • errorstringrequired
    • messagestring
  • 401application/json
    No valid credential
    • errorstringrequired
    • messagestring
  • 403application/json
    The credential lacks the scope, origin or address
    • errorstringrequired
    • messagestring
  • 429application/json
    Over the key's rate limit; see Retry-After
    • errorstringrequired
    • messagestring

This page as Markdown