# listMemoryShelves

Memory: the shelves you may open (PERSON (yours), TEAM (the organization's), EMPLOYEE and CONTACT (only the contacts the key owner may open in the CRM)) and how many subjects each list shelf holds (null for PERSON and TEAM, one subject each). The fleet's PROJECT shelf is never reachable through the API. A rule for one workflow lives on TEAM, naming the workflow. List a shelf with listMemorySubjects; read one subject with getMemorySubjectNotes. Replaces listMemoryScopes.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "listMemoryShelves", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

None.

## Response (data, an example)

```json
{
  "spacesQuery": {
    "memoryLibrary": {
      "shelves": [
        {
          "shelf": "PERSON",
          "subjectCount": 0
        }
      ]
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listMemoryShelves",
    "variables": {}
  }'
```
