---
title: "GET /api/v1/docs-sites/{spaceId}/previews/{buildId}"
method: GET
path: "/api/v1/docs-sites/{spaceId}/previews/{buildId}"
---

# GET /api/v1/docs-sites/{spaceId}/previews/{buildId}

`GET /api/v1/docs-sites/{spaceId}/previews/{buildId}`

## Request

- Base URL: `https://falconer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://falconer.com/api/v1/docs-sites/{spaceId}/previews/{buildId}`
- Auth: none declared

## Path parameters

- `spaceId` integer, required: Space id, from GET /spaces.
- `buildId` string, required

## Query parameters

- `documentId` string: Open the preview on this document's page.

## Headers

- `x-organization-id` string: Required when using OAuth bearer tokens.

## Response `200`

Your preview build.

- DocsPreview
  - `buildId` string, required
  - `documentId` string, nullable, required: The page previewUrl opens on. Not stored with the build, so pass it again when polling.
  - `status` 'queued' | 'building' | 'succeeded' | 'failed', required
  - `error` string, nullable, required
  - `previewUrl` string, nullable, required: Set once the build succeeded. Opens in a browser signed in to Falconer.
  - `blockedByAnotherBuild` boolean, required
  - `queuedForMs` integer, nullable, required

## Other responses

- `400`: Bad request
- `403`: Public docs are not enabled or permission is missing
- `404`: Docs site or build not found

---

[API](https://skmtc.dev/falconer/apis/falconer-public-api.md) · [All operations](https://skmtc.dev/falconer/apis/falconer-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/falconer/apis/falconer-public-api/revisions/7b303b7ddf6a?raw)
