Get the build log
⚠️
Preview — this feature is being built; the design below is the spec.
GET https://app.syntic.ai/v1/environments/{environment_id}/build_logReturn the plain-text log of the environment’s most recent build. Read it when build.status is failed: the last lines usually name the package or script step that broke.
For how this fits into a full workflow, see Environments.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <key>: a private inference key (sk_live_...). See Authentication. |
syntic-beta | Yes, while in preview | agents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning. |
Path parameters
| Parameter | Type | Description |
|---|---|---|
environment_id | string | The environment id, starting with env_. |
Response
200 OK
Content-Type: text/plain; charset=utf-8. Logs are kept for 30 days and capped at 5 MB, keeping the end of the log.
Examples
curl -sS -o build.log https://app.syntic.ai/v1/environments/env_01JC5B2D4F6H8K0M2P4R/build_log \
-H "Authorization: Bearer $SYNTIC_API_KEY" \
-H "syntic-beta: agents-2026-11-01"Errors
Errors use the error envelope and carry a request_id. Codes specific to this operation:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 404 | not_found_error | environment_not_found | No environment with that id in this workspace. |
| 401 | authentication_error | invalid_api_key | The key is missing, unknown, revoked or expired. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Related
Was this page helpful?