# listSpacesSharedWithMe

The "Shared with me" view: folders and files teammates shared with you directly, newest first. Each item's `viewerRole` is your EFFECTIVE role on it (the share, or more through Team files, ownership or a folder above), not necessarily what the share alone granted; getSpaceAccessList lists each share's role.

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

## Variables

None.

## Response (data, an example)

```json
{
  "spacesQuery": {
    "sharedWithMe": [
      {
        "id": "<ID>",
        "spaceId": "<ID>",
        "spaceName": "…",
        "parentId": "<ID>",
        "kind": "FOLDER",
        "name": "…",
        "fileType": "…",
        "sizeBytes": 0,
        "viewerRole": "VIEWER",
        "owner": {
          "id": "<ID>",
          "name": "…"
        },
        "path": [
          {
            "id": "<ID>",
            "name": "…"
          }
        ],
        "updatedAt": "2026-01-01T00:00:00.000Z"
      }
    ]
  }
}
```

## Example

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