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

# Get account

> Account identity, wallet and current policy limits. automatic_tier follows verified purchases net of reversals; minimum_tier is the administrative floor; tier is the effective tier. effective_limits contains rpm, tpm, concurrency, read_rpm and estimate_tokens_per_minute, shared across this account's keys and browser sessions.



## OpenAPI

````yaml /openapi.json get /v1/account
openapi: 3.1.0
info:
  title: DecisionOne workbench
  description: >-
    Native decisions, immutable datasets, adaptation and shared-base deployment.
    Authenticate with `Authorization: Bearer d1_sk_...` when accounts are on. A
    short guide for coding agents is at /llms.txt. Hosted account APIs accept a
    Bearer API key or a browser session. Browser mutations require the
    configured Origin and X-CSRF-Token from /auth/session. Account recovery and
    history remain available to blocked accounts. Waitlisted accounts can read
    their account summary and model catalogue and request early access; private
    member APIs require admission. Money fields ending in _usd are exact decimal
    strings; never interpret them as integer cents. Authenticated customer reads
    and existing-operation replays share read_rpm. Exhausted budgets return 429
    with Retry-After; unavailable admission storage returns 503.
  version: 0.1.0
servers:
  - url: https://console.sqwish.ai
security: []
tags:
  - name: Decisions
    description: Probabilities for questions with fixed outcomes.
  - name: Feedback
    description: Report outcomes and turn them into training data.
  - name: Models
    description: Base models, adapters and named models with versions.
  - name: Datasets
    description: Validated training examples. A dataset never changes.
  - name: Fine-tuning
    description: Training jobs, their events and held-out results.
  - name: Prompt tuning
    description: Better wording for a decision, tested on your rows. Words, not weights.
  - name: Labeling
    description: Teacher labels for real queries, reviewed by you.
  - name: Accounts
    description: Email OTP sign-in, revocable sessions, security and API keys.
  - name: Billing
    description: Exact USD balances, purchases, automatic top-ups and referrals.
  - name: Integrations
    description: Endpoints other tools call, such as Claude Code.
  - name: System
    description: Health and discovery.
paths:
  /v1/account:
    get:
      tags:
        - Accounts
      summary: Get account
      description: >-
        Account identity, wallet and current policy limits. automatic_tier
        follows verified purchases net of reversals; minimum_tier is the
        administrative floor; tier is the effective tier. effective_limits
        contains rpm, tpm, concurrency, read_rpm and estimate_tokens_per_minute,
        shared across this account's keys and browser sessions.
      operationId: getAccount
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                properties:
                  user:
                    $ref: '#/components/schemas/User'
                  accounts_enabled:
                    title: Accounts Enabled
                    type: boolean
                  automatic_tier:
                    title: Automatic Tier
                    type: integer
                  minimum_tier:
                    type: integer
                    title: Minimum Tier
                  tier:
                    title: Tier
                    type: integer
                  effective_limits:
                    $ref: '#/components/schemas/AccountLimits'
                  waitlist:
                    anyOf:
                      - $ref: '#/components/schemas/Waitlist'
                      - type: 'null'
                  referrals:
                    $ref: '#/components/schemas/Referrals'
                  wallet:
                    $ref: '#/components/schemas/Wallet'
                  onboarding:
                    $ref: '#/components/schemas/Onboarding'
                required:
                  - user
                  - accounts_enabled
                  - automatic_tier
                  - minimum_tier
                  - tier
                  - effective_limits
                  - waitlist
                  - referrals
                  - wallet
                  - onboarding
                title: Account
                type: object
        4XX:
          description: >-
            Client error. On a 422, `error.details` lists each field that
            failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        5XX:
          description: Server error. A 503 names what is not running on this server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    User:
      properties:
        id:
          type: string
          title: Id
        email:
          type: string
          title: Email
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        picture:
          anyOf:
            - type: string
            - type: 'null'
          title: Picture
        role:
          type: string
          enum:
            - member
            - admin
          title: Role
        status:
          type: string
          enum:
            - active
            - waitlisted
            - blocked
          title: Status
        referral_code:
          type: string
          title: Referral Code
        created_at:
          type: number
          title: Created At
        admitted_at:
          anyOf:
            - type: number
            - type: 'null'
          title: Admitted At
        financial_blocked:
          type: boolean
          title: Financial Blocked
        reminders_enabled:
          type: boolean
          title: Reminders Enabled
        minimum_tier:
          type: integer
          title: Minimum Tier
      type: object
      required:
        - id
        - email
        - name
        - picture
        - role
        - status
        - referral_code
        - created_at
        - admitted_at
        - financial_blocked
        - reminders_enabled
        - minimum_tier
      title: User
    AccountLimits:
      properties:
        rpm:
          type: integer
          title: Rpm
        tpm:
          type: integer
          title: Tpm
        concurrency:
          type: integer
          title: Concurrency
        read_rpm:
          type: integer
          title: Read Rpm
        estimate_tokens_per_minute:
          type: integer
          title: Estimate Tokens Per Minute
      type: object
      required:
        - rpm
        - tpm
        - concurrency
        - read_rpm
        - estimate_tokens_per_minute
      title: AccountLimits
    Waitlist:
      properties:
        position:
          anyOf:
            - type: integer
            - type: 'null'
          title: Position
        total:
          type: integer
          title: Total
      type: object
      required:
        - position
        - total
      title: Waitlist
    Referrals:
      properties:
        code:
          type: string
          title: Code
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        count:
          type: integer
          title: Count
        places_per_referral:
          type: integer
          title: Places Per Referral
        reward_usd:
          type: string
          title: Reward Usd
        minimum_purchase_usd:
          type: string
          title: Minimum Purchase Usd
        lifetime_limit:
          type: integer
          title: Lifetime Limit
      type: object
      required:
        - code
        - url
        - count
        - places_per_referral
        - reward_usd
        - minimum_purchase_usd
        - lifetime_limit
      title: Referrals
    Wallet:
      properties:
        currency:
          type: string
          const: USD
          title: Currency
        paid_usd:
          type: string
          title: Paid Usd
        promotional_usd:
          type: string
          title: Promotional Usd
        available_usd:
          type: string
          title: Available Usd
        reserved_usd:
          type: string
          title: Reserved Usd
        financial_shortfall_usd:
          type: string
          title: Financial Shortfall Usd
      type: object
      required:
        - currency
        - paid_usd
        - promotional_usd
        - available_usd
        - reserved_usd
        - financial_shortfall_usd
      title: Wallet
    Onboarding:
      properties:
        email_verified:
          type: boolean
          title: Email Verified
        workspace_access:
          type: boolean
          title: Workspace Access
        api_key_created:
          type: boolean
          title: Api Key Created
        prediction_succeeded:
          type: boolean
          title: Prediction Succeeded
        dismissed:
          type: boolean
          title: Dismissed
      type: object
      required:
        - email_verified
        - workspace_access
        - api_key_created
        - prediction_succeeded
        - dismissed
      title: Onboarding
    ErrorResponse:
      description: >-
        The body of every error. app.failure() builds it; this model documents
        it.
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      required:
        - error
      title: ErrorResponse
      type: object
    ErrorBody:
      properties:
        code:
          description: A stable code to branch on, such as invalid_request.
          title: Code
          type: string
        message:
          description: What went wrong and what to change, in plain words.
          title: Message
          type: string
        retryable:
          description: >-
            True when another attempt may succeed; it does not prove that no
            work was done. Respect Retry-After when present. Only operations
            that support Idempotency-Key replay a prior result, including
            /v1/decide for 24 hours.
          title: Retryable
          type: boolean
        request_id:
          description: Also sent as X-Request-ID. Quote it in bug reports.
          title: Request Id
          type: string
        details:
          anyOf:
            - items:
                $ref: '#/components/schemas/ErrorDetail'
              type: array
            - type: 'null'
          default: null
          description: On validation errors, one entry for each field that failed.
          title: Details
      required:
        - code
        - message
        - retryable
        - request_id
      title: ErrorBody
      type: object
    ErrorDetail:
      properties:
        path:
          description: Where the problem is, such as ["body", "decisions", 0, "outcomes"].
          items:
            anyOf:
              - type: string
              - type: integer
          title: Path
          type: array
        message:
          title: Message
          type: string
        type:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Type
      required:
        - path
        - message
      title: ErrorDetail
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: d1_sk_...
      description: Create an API key in the console. Required when accounts are enabled.

````