> ## Documentation Index
> Fetch the complete documentation index at: https://docs.variable.global/llms.txt
> Use this file to discover all available pages before exploring further.

# List Accounts

> List the accounts the authenticated user can access.

<Note>
  This endpoint is only available with OAuth or session authentication. Scoped API keys
  (`api_xxx`) are bound to a single account, so this route rejects them with a 401.
</Note>


## OpenAPI

````yaml GET /v1/account
openapi: 3.0.1
info:
  title: Variable API
  description: This is the Variable API
  version: 1.1.0
servers:
  - url: https://app.variable.global/api
security:
  - basicAuth: []
  - bearerAuth: []
  - oAuthNoScopes: []
paths:
  /v1/account:
    get:
      summary: List the accounts the authenticated user can access
      description: >
        Returns the accounts the authenticated user has access to.


        **OAuth/session only.** Scoped API keys (`api_xxx`) are bound to a
        single

        account, so this endpoint rejects them with a 401. Use the OAuth flow if

        you need to enumerate or switch between accounts.
      responses:
        '200':
          description: A list of accounts
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Account'
        '401':
          description: >
            Returned when the token is missing/expired, or when the request

            authenticates with a scoped API key (this endpoint is OAuth/session
            only).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpiredTokenResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    Account:
      type: object
      required:
        - uuid
        - name
        - mcpEnabled
      properties:
        uuid:
          type: string
          format: uuid
        name:
          type: string
          example: Acme, Inc.
        mcpEnabled:
          type: boolean
          description: Whether MCP is enabled for the account.
    ExpiredTokenResponse:
      type: object
      properties:
        message:
          type: string
          example: token expired
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    oAuthNoScopes:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: /auth/token
          scopes: {}

````