---
title: "GET /vault/oauth/accounts"
method: GET
path: "/vault/oauth/accounts"
---

# GET /vault/oauth/accounts

`GET /vault/oauth/accounts`

## Request

- Base URL: `https://api.useanima.sh/v1`
- URL: `https://api.useanima.sh/v1/vault/oauth/accounts`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Query parameters

- `agentId` union: Agent identifier. Optional when using an agent API key (resolved automatically); required when using a master key.
  - string
  - string
- `userId` string: Filter by end-user ID (multi-tenant)
- `appSlug` string: Filter by app slug
- `status` 'PENDING' | 'ACTIVE' | 'EXPIRED' | 'REFRESHING' | 'FAILED' | 'REVOKED': Filter by status

## Response `200`

OK

- object: List of connected OAuth accounts
  - `items` object[], required: Connected OAuth accounts
    - `id` string, required: Unique connected account identifier
    - `agentId` string, required: Agent that owns this connection
    - `userId` string, nullable, required: End-user this connection belongs to (multi-tenant)
    - `appDefinitionId` string, required: OAuth app definition ID
    - `appSlug` string, required: App slug for easy reference
    - `appName` string, required: Human-readable app name
    - `appIconUrl` string, nullable, required: App icon URL
    - `customAppId` string, nullable, required: Custom OAuth app ID (if BYOA)
    - `grantedScopes` string[], required: Scopes granted by the user
    - `accountLabel` string, nullable, required: User-defined label for this connection
    - `accountEmail` string, nullable, required: Account email from the provider
    - `status` 'PENDING' | 'ACTIVE' | 'EXPIRED' | 'REFRESHING' | 'FAILED' | 'REVOKED', required: Connection status
    - `statusMessage` string, nullable, required: Error message if status is FAILED
    - `tokenExpiresAt` string, date-time, nullable, required: When the access token expires
    - `lastRefreshedAt` string, date-time, nullable, required: When the token was last refreshed
    - `createdAt` string, date-time, required: When the connection was established
    - `updatedAt` string, date-time, required: When the connection was last updated

---

[API](https://skmtc.dev/useanima/apis/anima-api.md) · [All operations](https://skmtc.dev/useanima/apis/anima-api/llms.txt) · [OpenAPI document](https://skmtc.dev/useanima/apis/anima-api/revisions/aaa148188980?raw)
