---
title: "GET /projects/{project_id}/access"
method: GET
path: "/projects/{project_id}/access"
tags: ["Teams"]
---

# GET /projects/{project_id}/access

`GET /projects/{project_id}/access`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/access`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required

## Response `200`

Access grants

- ProjectAccessResponse[]
  - `created_at` string, date-time, required
  - `granted_by` integer, required
  - `id` integer, required
  - `project_id` integer, required
  - `role` 'owner' | 'admin' | 'deployer' | 'viewer', required: Role a user holds within a team, or that a team holds on a project. Named `TeamRole` rather than `Role` to keep it distinct from `temps_auth::permissions::Role`, which is the instance-wide role (Admin/User/…) attached to a session. The two are orthogonal: the instance-wide role decides whether you may touch a resource *kind* at all, `TeamRole` decides what you may do *within a project* you have team access to. See `temps_teams::fixed_role_permissions` for the project-scoped permission set each variant maps to. Stored as a `varchar(32)` rather than a Postgres enum so the role set can evolve in pure migration code without a schema-level enum alteration blocking a downgrade.
  - `team_id` integer, required
  - `updated_at` string, date-time, required

## Other responses

- `403`: Insufficient permissions or no access to this project

## Changes

- **2026-08-06** `fe64cc48eb6f`: 1 info
  - endpoint added
- **2026-08-06** `949964f26dd7`: 1 breaking
  - api path removed without deprecation
- **2026-08-04** `f5b05de1dacb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/access/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
