# List connected apps

`GET /v1/workspaces/{workspaceId}/oauth-grants`

Apps you allowed to act for you in this workspace through OAuth (MCP clients).

Needs a signed-in session; API and OAuth tokens get 403.

## Request

```bash
curl "https://api.lydie.co/v1/workspaces/01JCQ3TZ0WJ8K4M2X7T9R6N1PA/oauth-grants" \
  -H "Authorization: Bearer $LYDIE_TOKEN"
```

## Path parameters

- `workspaceId` (string, required): (1–64 chars)

## Response

- `grants` (OAuthGrant[], required)
  - `id` (string, required): (1–64 chars)
  - `workspaceId` (string, required): (1–64 chars)
  - `client` (object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `uri` (string, optional)
  - `scopes` (string[], required)
  - `createdAt` (string, required)
  - `lastUsedAt` (string, required, nullable)

```json
{
  "grants": [
    {
      "id": "string",
      "workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
      "client": {
        "id": "string",
        "name": "Notes",
        "uri": "string"
      },
      "scopes": [
        "docs:read"
      ],
      "createdAt": "string",
      "lastUsedAt": null
    }
  ]
}
```

Errors use the envelope described at https://developers.lydie.co/errors.md.
