Retrieve a build
A build's state; error explains a failure and getSiteBuildLog shows the compiler's output. wait (up to 50 seconds) answers as soon as the build finishes instead of polling; preview=true adds preview_url to a ready build, a private link to open in a browser and check the pages.
GET/v1/sites/{site_id}/builds/{build_id}
Requires sites:read.
ready, failed and cancelled are final. Instead of polling, pass wait (up to 50 seconds): the answer comes as soon as the build finishes. preview=true adds preview_url to a ready build, a private link valid one day to open in a browser (it needs sites:write, since it creates the link). warnings lists the non-fatal messages of the build.
Authorizations
Authorizationbearerin headerrequiredPath parameters
site_idstringrequiredThe site's id, or its slug (the address before .atelier201.page).
build_idstringrequiredQuery parameters
waitintegerrange: 0–50Seconds to wait for the build to finish (ready, failed or cancelled) before answering. 0 or omitted: answer at once.
previewbooleanWhen the build is ready, also return preview_url: a private link to it (valid one day, reused while it lasts) to open in a browser and check the pages.
Response
Retrieve a build
dataobjectrequiredrequest_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_credits
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required
errorobjectrequiredrequest_idstringrequiredPossible codes: resource_not_found
errorobjectrequiredrequest_idstringrequiredPossible codes: conflict, result_not_ready, idempotency_key_reused
errorobjectrequiredrequest_idstringrequiredPossible codes: result_expired
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large_for_plan
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequiredPossible codes: service_unavailable
errorobjectrequiredrequest_idstringrequired