# List the teams with a role on a project

GET

/v1/projects/{projectId}/team-grants

```sh
curl --request GET \
  --url 'https://example.com/v1/projects/example/team-grants?limit=25' \
  --header 'Authorization: Bearer <token>'
```

Every member of a team holds its role on the project. For the project’s editors and admins (`write`). Each grant names its team and project.

## Authorizations

- **[bearerAuth](https://docs.kindgi.com/v0.1.10/reference/api.md#bearerauth)**

## Parameters

### Path Parameters

**projectId**

required

string

ProjectId — opaque branded string.

### Query Parameters

**limit**

integer

default: 25 >= 1 <= 100

1..100. Default 25.

**cursor**

string

Where the previous page ended: its `nextCursor`, as it came. A runtime that seals cursors takes one only for the same list, filters and caller, within a day; otherwise `400 bad-input`, and the list starts again without it. Absent → first page.

## Responses

### 200

Page of team grants.

application/json

object

**data**

required

Array\<object>

A team’s role on a project.

object

**teamId**

required

string

**projectId**

required

string

**role**

required

A team’s role on a project, held by every member of the team: `admin` includes `editor`, which includes `viewer`. A team never owns a project.

string

Allowed values: viewer editor admin

**grantedAt**

When the team was given the role. Absent from a runtime that does not record it, or for a grant from before 0.1.6.

string format: date-time

**teamName**

string

**projectName**

string

**hasMore**

required

boolean

**nextCursor**

string

##### Example

```json
{
  "data": [
    {
      "role": "viewer"
    }
  ]
}
```

### 401

Missing / malformed / expired / revoked bearer token.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 404

No project with that id under this tenant.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

## See also

- [`POST /v1/projects/{projectId}/team-grants`: Give a team a role on a project](https://docs.kindgi.com/v0.1.10/reference/api/operations/projectsteamgrantsadd.md)
- [`GET /v1/projects/{projectId}`: Fetch a project by id](https://docs.kindgi.com/v0.1.10/reference/api/operations/projectsget.md)
- [`PATCH /v1/projects/{projectId}`: Partially update a project](https://docs.kindgi.com/v0.1.10/reference/api/operations/projectsupdate.md)
- [`DELETE /v1/projects/{projectId}`: Delete a project (idempotent)](https://docs.kindgi.com/v0.1.10/reference/api/operations/projectsdelete.md)
- [Every error code](https://docs.kindgi.com/v0.1.10/reference/errors.md)
