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

# Get the account

> The signed-in account behind the key: email, plan, and account-wallet balance.

Keys are **account-bound**: they belong to the user who authorized the connection, not to a team workspace. This endpoint identifies that account and returns its wallet balance and plan.


## OpenAPI

````yaml api-reference/openapi.json GET /v1/account
openapi: 3.0.3
info:
  title: Flowy App API
  version: 1.3.1
  description: >-
    Run Flowy apps and direct generations programmatically.


    Authenticate with a workspace API key in the `Authorization: Bearer` header.
    A **secret** key (`flowy_…`) is for servers; a **publishable** key
    (`flowy_pk_…`) is browser-safe and only works from its allowlisted domains.
    Every run or generation bills the API key's own workspace credits
    (caller-pays), so a leaked key can never spend another workspace's balance.


    Keys carry **scopes**: `apps:read` (list/inspect apps), `runs:read` (poll
    runs), `runs:write` (start runs), `generations:read` (poll direct
    generations), `generations:write` (start direct generations), `assets:read`
    (list/read workspace assets), and `credits:read` (read the credit balance).
    A request that needs a scope the key doesn't hold returns `403`.


    A published (public) app is runnable by any key; a private app is runnable
    only by a key of its own workspace.
servers:
  - url: https://apis.tryflowy.ai/genstudio-svc-v2/api
    description: Flowy production API
security:
  - ApiKeyAuth: []
tags:
  - name: Apps
    description: Discover apps and inspect their input/output schema.
  - name: Runs
    description: Start runs and poll for their results.
  - name: Generations
    description: Start direct image/video generations and poll for their results.
  - name: Assets
    description: Browse the workspace's asset library (uploads + generated media).
  - name: Credits
    description: Read the workspace's credit balance.
  - name: Spec
    description: The machine-readable OpenAPI document.
paths:
  /v1/account:
    get:
      tags:
        - Account
      summary: Get the signed-in account
      description: >-
        The account behind the key: email, name, plan, and the account wallet's
        credit balance. Keys are account-bound, so this identifies who
        authorized the connection.
      operationId: getAccount
      responses:
        '200':
          description: The account
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/V1Account'
components:
  schemas:
    V1Account:
      type: object
      properties:
        userId:
          type: string
        email:
          type: string
        name:
          type: string
        planId:
          type: string
          description: Empty/absent means the free plan
        planStatus:
          type: string
        planRenewsAt:
          type: string
          format: date-time
        workspaceId:
          type: string
          description: The account wallet (personal workspace)
        credits:
          type: number
        blockedCredits:
          type: number
        available:
          type: number
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: flowy_*
      description: >-
        A workspace API key. Secret keys (`flowy_…`) are server-side — keep them
        private. Publishable keys (`flowy_pk_…`) are browser-safe but only work
        from their allowlisted domains.

````