---
title: "List project machine grants"
method: GET
path: "/orgs/{orgID}/projects/{projectID}/machine-grants"
tags: ["Machines"]
---

# List project machine grants

`GET /orgs/{orgID}/projects/{projectID}/machine-grants`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/machine-grants`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session`

Lists explicit machine grants that can be deleted directly. Pool-derived machine access is managed through project machine pool grants.

## Path parameters

- `orgID` string, required
- `projectID` string, required

## Query parameters

- `name` string
- `sort` 'name' | '-name' | '-updated_at' | 'updated_at' | '-created_at' | 'created_at': Field to sort by; prefix with - for descending order. Defaults to -created_at (newest first).
- `limit` integer
- `cursor` string

## Response `200`

Project machine grants.

- ListProjectMachineGrantsResponse
  - `data` ProjectMachineGrantListItem[], required: Project's machine grants on this page, each with its machine.
    - `grant` ProjectMachineGrant, required: Grant that gives the project access to the machine.
      - `id` string, required: Identifies the machine grant.
      - `org_id` string, required: Organization that owns the grant.
      - `project_id` string, required: Project the grant gives access to.
      - `machine_id` string, required: Machine the project's agents may use.
      - `source_kind` 'explicit' | 'pool', required: Whether the grant was made directly or created for a machine from a pool grant.
      - `project_machine_pool_grant_id` string, nullable
      - `description` string, required: Free-form note about the grant; empty if none was set.
      - `metadata` Metadata, required: Key-value metadata attached to the grant.
      - `created_at` string, date-time, required: When the grant was created.
      - `updated_at` string, date-time, required: When the grant last changed.
    - `machine` MachineSummary, required: Summary of the granted machine.
      - `id` string, required: Identifies the machine.
      - `org_id` string, required: Organization that owns the machine.
      - `source_kind` 'byo' | 'pool', required: Whether the machine is a bring-your-own computer or was created from a machine pool.
      - `display_name` string, required: Machine name; agent configs reference a BYO machine by this as machine_name.
      - `description` string, required: Free-form note about the machine; empty if none was set.
      - `provider` string, required: Sandbox provider that hosts a pool machine; byo for bring-your-own machines.
      - `lifecycle_state` 'provisioning' | 'provision_failed' | 'active' | 'deleting' | 'delete_failed' | 'deleted', required: Where the machine is in provisioning or deletion, independent of whether its daemon is connected.
      - `connection_state` 'online' | 'asleep' | 'offline', required: Whether the machine's daemon is connected now.
      - `last_observed_at` string, date-time, nullable, required
      - `deleted_at` string, date-time, nullable, required
      - `created_at` string, date-time, required: When the machine record was created.
      - `updated_at` string, date-time, required: When the machine record last changed.
  - `next_cursor` string, nullable, required: Cursor for the next page, or null when this is the last page.

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `409`: The request conflicts with current resource state or idempotency history.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-10-05** `3d9e2cf46e07`: 159 info
  - added the optional property `current_digest` to the response with the `400` status
  - added the optional property `current_digest` to the response with the `401` status
  - added the optional property `current_digest` to the response with the `403` status
  - added the optional property `current_digest` to the response with the `404` status
  - …155 more
  - …this revision’s changelog is incomplete
- **2026-09-28** `acddeb8fc6a5`: 7 warning, 7 info
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `400`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `401`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `403`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `404`
  - …10 more
- **2026-09-01** `e4978b047d7a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/projects/:projectID/machine-grants/get.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
