---
title: "Check whether a managed source can trigger builds"
method: GET
path: "/v1/spaces/{spaceId}/builds/preflight"
tags: ["Builds"]
---

# Check whether a managed source can trigger builds

`GET /v1/spaces/{spaceId}/builds/preflight`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/spaces/{spaceId}/builds/preflight`
- Auth: HTTP bearer

Checks the space's WordPress source and the connected production repository behind it, without exposing repository or build details. `wordpress` is the only managed source, so it is the only value `source` takes.

## Path parameters

- `spaceId` string, required

## Query parameters

- `source` 'wordpress', required: Managed build source that decides what to build on the caller's behalf. `wordpress` is the only one.
- `sourceUrl` string, uri, required: Configured WordPress URL to check, as stored in the Space's data sources.

## Response `200`

Response for status 200

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object, required
    - `ready` true, required: The source can trigger production builds right now.

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

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