# List Members

`GET /members` · Core · Members & End Users

Returns a list of members for the specified project. Org admins and owners with the auto-granted `PROJECT_ADMIN` role are included via join-time evaluation. Requires a project or org membership granting access.

## Parameters

| Name | In | Required | Description |
|---|---|---|---|
| `userId` | query | no | Only the membership of this user (`usr_...`). |
| `role` | query | no | Only members with this project role. |
| `state` | query | no | Only members in these states, comma-separated: `invited` (the invitation is not accepted) and `active`. |
| `projectSlug` | path | yes | The project's slug: the path segment after `@`. It is unique within the org. Example: `"storefront"`. |

## Responses

- **200**: Success

| Field | Type | Required | Description |
|---|---|---|---|
| `data` | array of object | yes | The project's members, oldest membership first, narrowed by the query filters. Empty when none match. |
| `data.[]userId` | string | yes | The member's user id (`usr_...`). |
| `data.[]projectId` | string | yes | The project's id (`proj_...`). |
| `data.[]role` | enum ("PROJECT_ADMIN", "PROJECT_EDITOR", "PROJECT_MEMBER", "PROJECT_VIEWER", "PROJECT_AUDITOR", "PROJECT_AUTHOR", "PROJECT_ANALYST") | yes | The member's explicit project role. Org owners and admins also have admin access to every project without a row here, and are listed only if they have one. |
| `data.[]email` | string | yes | The member's sign-in email address. |
| `data.[]displayName` | string | yes | The member's display name. |
| `data.[]invitedAt` | string (date-time) | yes | When the membership was created. |
| `data.[]acceptedAt` | object | yes | When the membership was accepted, or null while it is still an invitation. |
| _one of_ | | |  |
| _or_ | | |  |
| `data.[]state` | enum ("invited", "active") | yes | `invited` while `acceptedAt` is null, otherwise `active`. |
| `meta` | object | yes | Request metadata: cost, timing and the request and trace ids. |


## Errors

| HTTP | Code | When |
|---|---|---|
| 401 | `K9O_SESSION_EXPIRED` | Your session has expired; sign in again to continue. |
| 403 | `K9O_ACCESS_DENIED` | You do not have the required role (PROJECT_ADMIN or higher) to list project members. |
| 410 | `K9O_SLUG_GONE` | The project slug in the URL has been renamed; update your integration to use the new slug. |

## Code samples

### cURL

```bash
curl -X GET 'https://<org>.api-<region>.k9o.io/@storefront/members' \
  -H 'Authorization: Bearer $K9O_TOKEN'
```

### fetch

```javascript
const res = await fetch('https://<org>.api-<region>.k9o.io/@storefront/members', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${process.env.K9O_TOKEN}`
  },
});
const { data, meta } = await res.json();
```

### k9o CLI

```bash
k9o org members list --status active|suspended, --state invited|active|suspended, --role <role>
```

### @k9o/core

```typescript
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.org.members.list()
```

### k9o

```python
# k9o = create_client(org_slug="playground", project_slug="storefront", api_key="k9o_…")
response = k9o.org.members.list()
```

### sdk-go

```go
// ctx := context.Background()
// client, _ := k9o.NewClient(k9o.ClientOpts{OrgSlug: "playground", ProjectSlug: "storefront", APIKey: "k9o_…"})
data, _, kerr := client.Org.Members.List(ctx)
```

### k9o

```rust
// let k9o = Client::new(ClientOpts { org_slug: "playground".into(), project_slug: "storefront".into(), api_key: "k9o_…".into() })?;
let resp = k9o.org.members.list().await?
```

### dev.k9o:core

```java
// K9o k9o = K9o.createClient(K9o.Opts.builder().orgSlug("playground").projectSlug("storefront").apiKey("k9o_…").build());
var response = k9o.org().members().list()
```

### K9o.Core

```c#
// var k9o = K9oClient.Create(new K9oOptions { OrgSlug = "playground", ProjectSlug = "storefront", ApiKey = "k9o_…" });
var response = await k9o.Org.Members.ListAsync()
```

### k9o

```ruby
# k9o = K9o.create_client(org_slug: "playground", project_slug: "storefront", api_key: "k9o_…")
response = k9o.org.members.list()
```

### k9o/sdk

```php
// $k9o = K9oClient::create(['org_slug' => 'playground', 'project_slug' => 'storefront', 'api_key' => 'k9o_…']);
$response = $k9o->org->members->list()
```


Canonical page: https://docs.kilimanjaro.dev/api-playground/core/list-members
