API referenceSections

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

NameInTypeRequiredDescription
idpathstringrequired
rquerystringoptional

The path on the preview to go back to

Responses

302 To the preview with a pass

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required