---
title: "List builds for the org"
method: GET
path: "/v3beta1/organizations/{org_id}/snapshot-setup/builds"
tags: ["snapshot_setup"]
---

# List builds for the org

`GET /v3beta1/organizations/{org_id}/snapshot-setup/builds`

## Request

- The document declares no server URL.
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/devinenterprise/apis/devin-api-v1/docs/v3beta1/organizations/:org_id/snapshot-setup/builds/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required

## Query parameters

- `after` string, nullable
- `first` integer
- `status` 'pending' | 'running' | 'succeeded' | 'failed' | 'cancelled', nullable: Filter by spec status.
- `active` boolean, nullable: If true, returns 0 or 1 items: the build whose image is currently used by new sessions.

## Response `200`

Successful Response

- PaginatedResponseBuild
  - `end_cursor` string, nullable: Cursor to fetch the next page, or None if this is the last page.
  - `has_next_page` boolean: Whether there are more items available after this page.
  - `items` Build[], required
    - `build_id` string, required
    - `completed_at` integer, nullable, required
    - `created_at` integer, required
    - `pinned` boolean, required
    - `started_at` integer, nullable, required
    - `status` 'pending' | 'running' | 'succeeded' | 'failed' | 'cancelled', required
    - `trigger` 'manual' | 'auto', nullable, required
    - `triggered_by_user_id` string, nullable, required
    - `updated_at` integer, required
  - `total` integer, nullable: Optional total count (can be omitted for performance).

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Content
- `429`: Too Many Requests

---

[API](https://skmtc.dev/devinenterprise/apis/devin-api-v1.md) - [All operations](https://skmtc.dev/devinenterprise/apis/devin-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/devinenterprise/apis/devin-api-v1/revisions/e3244476af1c?raw)
