The sign-in gate of a Git preview
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
GET
/api/v1/preview-gate/{id}The sign-in gate of a Git preview (ADR 0160)
Signed in and allowed to read the live site: redirected to the preview with a pass for 12 hours. Without a session: redirected to /login.
No authentication.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | required | |
r | query | string | optional | The path on the preview to go back to |
Responses
302 To the preview with a pass
default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required