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

# Get My Accounts

> List the accounts the signed-in portal viewer may act as, for an account switcher.

Derived entirely from the signed session (email + tenant) — nothing is client-supplied, so the
listing cannot be steered. Switching account is a separate re-mint: ``POST /auth/token`` with a
``customer_id``. ``active_customer_id`` is the account THIS token is scoped to.



## OpenAPI

````yaml /api/portal-sdk.openapi.json get /sdk/v1/me/accounts
openapi: 3.1.0
info:
  title: Statisfy Portal SDK API
  description: >-
    Customer-facing portal APIs under `/sdk/v1`, scoped to the customer in the
    token — see the Portal SDK guide. Every call is authenticated with a minted
    **portal-session token** (bearer) and nothing else: no publishable key,
    because the tenant is read from the token's own claim.
  version: v1
servers:
  - url: https://api.statisfy.com
    description: Production gateway
security:
  - portalSession: []
paths:
  /sdk/v1/me/accounts:
    get:
      tags:
        - sdk
      summary: Get My Accounts
      description: >-
        List the accounts the signed-in portal viewer may act as, for an account
        switcher.


        Derived entirely from the signed session (email + tenant) — nothing is
        client-supplied, so the

        listing cannot be steered. Switching account is a separate re-mint:
        ``POST /auth/token`` with a

        ``customer_id``. ``active_customer_id`` is the account THIS token is
        scoped to.
      operationId: get_my_accounts_sdk_v1_me_accounts_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SdkAccountsResponse'
        '401':
          description: Token is missing or not scoped to a portal customer
components:
  schemas:
    SdkAccountsResponse:
      properties:
        accounts:
          items:
            $ref: '#/components/schemas/SdkAccount'
          type: array
          title: Accounts
        active_customer_id:
          type: string
          title: Active Customer Id
          description: The account the CURRENT token is scoped to (its signed claim).
      type: object
      required:
        - accounts
        - active_customer_id
      title: SdkAccountsResponse
      description: The switchable account set for the current session.
    SdkAccount:
      properties:
        customer_id:
          type: string
          title: Customer Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: >-
            The account's display name; null when the account row carries none —
            fall back to the id.
        domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Domain
        is_primary:
          type: boolean
          title: Is Primary
          default: false
          description: The account a session lands on when the viewer states no preference.
      type: object
      required:
        - customer_id
      title: SdkAccount
      description: One account a portal viewer may act as.
  securitySchemes:
    portalSession:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Minted portal-session JWT (see the Portal SDK guide for the token
        exchange).

````