---
title: "List who a mind is shared with"
description: "Readable by anyone who can read the mind — knowing who else is in a\nshared collection is part of using it."
---

> Documentation Index
> Fetch the complete documentation index at: https://truememory-docs.mvstg.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: AI Gateway API › Minds

`GET /minds/{mind_id}/grants`

Readable by anyone who can read the mind — knowing who else is in a
shared collection is part of using it.

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Path parameters

- `mind_id` (`list_mind_grants.path.mind_id`; string, required)
  - format `uuid`

## Header parameters

- `X-App-Id` (`list_mind_grants.header.X-App-Id`; any of, optional)
  - any of: `string`, `null`
- `X-On-Behalf-Of` (`list_mind_grants.header.X-On-Behalf-Of`; any of, optional)
  - any of: `string`, `null`
- `X-External-User-Id` (`list_mind_grants.header.X-External-User-Id`; any of, optional)
  - any of: `string`, `null`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://truememory-api.mvstg.com/minds/<mind_id>/grants' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://truememory-api.mvstg.com/minds/<mind_id>/grants';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://truememory-api.mvstg.com/minds/<mind_id>/grants"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Successful Response

#### Example

```json
[
  {
    "mind_id": "string",
    "user_id": "string",
    "role": "viewer",
    "app_id": "string",
    "granted_at": "2019-08-24T14:15:22Z",
    "display_name": "string",
    "email": "string"
  }
]
```

- `mind_id` (`list_mind_grants.response.200.mind_id`; string, required)
- `user_id` (`list_mind_grants.response.200.user_id`; string, required)
- `role` (`list_mind_grants.response.200.role`; string, required)
  - one of `"viewer"`, `"admin"`
- `granted_at` (`list_mind_grants.response.200.granted_at`; string, required)
  - format `date-time`
- `app_id` (`list_mind_grants.response.200.app_id`; any of, optional)
  - any of: `string`, `null`
- `display_name` (`list_mind_grants.response.200.display_name`; any of, optional)
  - any of: `string`, `null`
- `email` (`list_mind_grants.response.200.email`; any of, optional)
  - any of: `string`, `null`

### 422

Validation Error

#### Example

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

- `detail` (`list_mind_grants.response.422.detail`; array<object>, optional)
  - `loc` (`list_mind_grants.response.422.detail.loc`; array<any of>, required)
    - any of: `string`, `integer`
  - `msg` (`list_mind_grants.response.422.detail.msg`; string, required)
  - `type` (`list_mind_grants.response.422.detail.type`; string, required)
  - `input` (`list_mind_grants.response.422.detail.input`; unknown, optional)
  - `ctx` (`list_mind_grants.response.422.detail.ctx`; object, optional)


Source: https://truememory-docs.mvstg.com/api/minds/grants/list/index.md
