---
title: "List your brains"
description: "List the brains you own, plus any shared with you."
---

> 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 › Brains

`GET /brains`

List the brains you own, plus any shared with you.

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Query parameters

- `app_id` (`list_brains.query.app_id`; any of, optional)
  - any of: `string`, `null`
- `limit` (`list_brains.query.limit`; integer, optional)
  - max 200; default `50`
- `offset` (`list_brains.query.offset`; integer, optional)
  - default `0`

## Header parameters

- `X-App-Id` (`list_brains.header.X-App-Id`; any of, optional)
  - any of: `string`, `null`
- `X-On-Behalf-Of` (`list_brains.header.X-On-Behalf-Of`; any of, optional)
  - any of: `string`, `null`
- `X-External-User-Id` (`list_brains.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/brains \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://truememory-api.mvstg.com/brains';
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/brains"

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

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

print(response.text)
```

## Responses

### 200

Successful Response

#### Example

```json
{
  "brains": [
    {
      "id": "string",
      "user_id": "string",
      "app_id": "string",
      "name": "string",
      "description": "string",
      "emoji": "string",
      "usage_hint": "string",
      "visibility": "private",
      "skills": [
        {
          "id": "string",
          "key": "string",
          "name": "string"
        }
      ],
      "document_count": 0,
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "skill_ids": [
        "string"
      ]
    }
  ],
  "total": 0
}
```

- `brains` (`list_brains.response.200.brains`; array<object>, required)
  - `id` (`list_brains.response.200.brains.id`; string, required)
  - `user_id` (`list_brains.response.200.brains.user_id`; any of, required)
    - any of: `string`, `null`
  - `app_id` (`list_brains.response.200.brains.app_id`; any of, required)
    - any of: `string`, `null`
  - `name` (`list_brains.response.200.brains.name`; string, required)
  - `description` (`list_brains.response.200.brains.description`; any of, required)
    - any of: `string`, `null`
  - `created_at` (`list_brains.response.200.brains.created_at`; string, required)
    - format `date-time`
  - `updated_at` (`list_brains.response.200.brains.updated_at`; string, required)
    - format `date-time`
  - `skill_ids` (`list_brains.response.200.brains.skill_ids`; array<string>, required) — Ids of ``skills``, for clients that only need to seed a multi-select. Derived rather than stored so it cannot disagree with ``skills``.
  - `emoji` (`list_brains.response.200.brains.emoji`; any of, optional)
    - any of: `string`, `null`
  - `usage_hint` (`list_brains.response.200.brains.usage_hint`; any of, optional)
    - any of: `string`, `null`
  - `visibility` (`list_brains.response.200.brains.visibility`; string, optional)
    - one of `"private"`, `"app"`, `"public"`; default `"private"`
  - `skills` (`list_brains.response.200.brains.skills`; array<object>, optional)
    - `id` (`list_brains.response.200.brains.skills.id`; string, required)
    - `key` (`list_brains.response.200.brains.skills.key`; string, required)
    - `name` (`list_brains.response.200.brains.skills.name`; string, required)
  - `document_count` (`list_brains.response.200.brains.document_count`; integer, optional)
    - default `0`
- `total` (`list_brains.response.200.total`; integer, required) — Total rows matching the filters before LIMIT/OFFSET.

### 422

Validation Error

#### Example

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

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


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