---
# @generated by sylphx-gen. Do not edit.
title: "List build attempts"
description: "`release.build_attempts.list` (GET /v1/{parent}/build_attempts): Lists the latest native build attempt per service for one exact commit, newest first."
type: reference
product: platform
summary: "Lists the latest native build attempt per service for one exact commit, newest first."
updated: 2026-09-28
nav: false
---

Lists the latest native build attempt per service for one exact commit, newest first. Use this to follow a push even before a Release exists. An empty result means no matching attempts were observed. An unreadable store returns an error. This does not list standalone Build runs.

- **Path** `GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/build_attempts`
- **Scope** `release:read`
- **Effect** `read` — nothing is written.
- **Collection** [build_attempts](/docs/api/build_attempts)
- **Query** `commit`, `page_size`, `page_token`
- **Pagination** the answer carries `build_attempts` and, when there is more, `next_page_token`

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `parent` | `string` | The environment to inspect. Required. |
| `commit` | `string` | The full 40-character source commit SHA (case-insensitive). Branch names and prefixes are not accepted. Required. |
| `page_size` | `int32` | At most this many; default 50, clamped to 100. |
| `page_token` | `string` | The previous page's next_page_token for the same environment and commit. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `build_attempts` | `BuildAttempt[]` | Latest matching attempt per service as observed at the time of this read. |
| `next_page_token` | `string` | The token of the next page; empty on the last page. |

### BuildAttempt

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | The attempt's name. Only listing is supported. |
| `uid` | `string` | Stable identity of this attempt. Output only. |
| `meta` | `ResourceMeta` | The time the build was recorded, before it necessarily began running. Output only. |
| `service_slug` | `string` | The project service slug, when still available. Output only. |
| `commit` | `string` | The intended source commit for this attempt, even before source capture. Output only. |
| `state` | `BuildAttemptState` | The recorded build state, independent of Release admission or serving. Output only. One of `queued`, `building`, `succeeded`, `failed`, `cancelled`. |
| `start_time` | `timestamp` | When the build was marked started, if recorded. Output only. |
| `end_time` | `timestamp` | When the build finished or was cancelled, if recorded. Output only. |
| `reason` | `BuildAttemptReason` | Finite terminal reason; absent while active or after a successful build. Output only. One of `build_failed`, `preparation_failed`, `export_failed`, `smoke_test_failed`, `cancelled`, `superseded`. |
| `service_id` | `string` | Stable project service ID, absent on older project-level attempts. Output only. |

### ResourceMeta

| Field | Type | What it is |
| --- | --- | --- |
| `generation` | `int64` | Increases by one on every change to `spec`. Output only. |
| `etag` | `string` | Strong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as `If-Match` or `etag` to make Update and Delete conditional; a mismatch fails with ABORTED / 409 `ETAG_MISMATCH`. Output only. |
| `create_time` | `timestamp` | When the Resource was created. Output only. |
| `update_time` | `timestamp` | When the Resource last changed. Output only. |
| `delete_time` | `timestamp` | Set while the Resource is being deleted. Output only. |
| `labels` | `map<string, string>` | Caller-writable, indexed labels (AIP-122 label rules). |
| `annotations` | `map<string, string>` | Caller-writable, unindexed annotations. |
| `display_name` | `string` | Caller-writable human-readable name. |
| `creator` | `string` | The principal that created the Resource. Output only. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`RESOURCE_NOT_FOUND`](/docs/api/errors/RESOURCE_NOT_FOUND) — The named Resource does not exist or is not visible.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.
- [`INVALID_STATE`](/docs/api/errors/INVALID_STATE) — The Resource is in a state that forbids the call.
- [`PAGE_TOKEN_MISMATCH`](/docs/api/errors/PAGE_TOKEN_MISMATCH) — A page token was reused with different parameters.
- [`UNAVAILABLE`](/docs/api/errors/UNAVAILABLE) — The Resource store, the owning service's backend, or the key verifier's snapshot is unavailable; retry after Retry-After.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/build_attempts" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"
```

**TypeScript**

```ts
const response = await sylphx.release.buildAttempts.list({ parent: 'orgs/acme/projects/shop/envs/production' })
```

**Rust**

```rust
let mut req = sylphx::release::ListBuildAttemptsRequest::default();
req.parent = "orgs/acme/projects/shop/envs/production".to_string();
let response = sx.release().build_attempts().list(req).await?;
```

**CLI**

```bash
sylphx release build-attempts list orgs/acme/projects/shop/envs/production
```

**MCP**

```json
{ "method_id": "release.build_attempts.list", "args": {"parent":"orgs/acme/projects/shop/envs/production"} }
```
