{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/transcribe-so/json-schema/transcribe-so-me-schema.json",
  "title": "Me",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/transcribe-so-openapi.yml#/components/schemas/Me",
  "type": "object",
  "required": [
    "user_id",
    "email",
    "wallet_balance_usd",
    "subscription_tier",
    "limits",
    "links"
  ],
  "properties": {
    "user_id": {
      "type": "string",
      "format": "uuid"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "wallet_balance_usd": {
      "type": "number"
    },
    "subscription_tier": {
      "type": "string",
      "description": "`free` is the Pay as you go plan; subscription plans are `starter`, `pro`, `business`, `enterprise`.\n",
      "enum": [
        "free",
        "starter",
        "pro",
        "business",
        "enterprise"
      ]
    },
    "deletion_scheduled_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When account deletion is scheduled, the earliest moment the account can be deleted (48 hours after it was requested; the daily cleanup removes it on or after this time). Null when no deletion is scheduled. Signing in on the web and choosing Cancel deletion clears it.\n"
    },
    "limits": {
      "type": "object",
      "description": "Effective plan limits, resolved live from the plan catalog.\n`max_file_minutes` is the cap the quote/start path enforces:\nyour plan's own cap, or the platform ceiling (12 hours) when\nthe plan has none.\n",
      "required": [
        "max_file_minutes",
        "max_upload_bytes",
        "max_concurrent_jobs"
      ],
      "properties": {
        "max_file_minutes": {
          "type": "integer",
          "description": "Single-file duration cap in minutes."
        },
        "max_upload_bytes": {
          "type": "integer",
          "description": "Single-file size cap in bytes for POST /uploads/tus, per plan:\n1 GiB free, 4 GiB pay as you go (positive balance after a\npaid top-up) and Starter, 8 GiB Pro and up. Presigned PUT\nuploads (POST /uploads) stay at 1 GiB.\n"
        },
        "max_concurrent_jobs": {
          "type": "integer",
          "description": "Transcription jobs allowed in flight at once."
        }
      }
    },
    "links": {
      "type": "object",
      "description": "Self-discovering navigation map. Surface in your own UI\ninstead of hardcoding URLs.\n",
      "properties": {
        "dashboard": {
          "type": "string",
          "format": "uri"
        },
        "api_keys": {
          "type": "string",
          "format": "uri"
        },
        "billing": {
          "type": "string",
          "format": "uri"
        },
        "docs": {
          "type": "string",
          "format": "uri"
        },
        "support": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "api_key": {
      "type": "object",
      "description": "Present only when authenticated with a tsk_live_ API key.\n`scopes` is [\"read\"] (read-only) or [\"read\",\"write\"];\n`monthly_cap_usd` is the optional per-key spend cap (null =\nuncapped); `current_month_spent_usd` is settled spend this UTC\nmonth on transcription jobs started with the key;\n`current_month_committed_usd` = settled + active holds on\nin-flight jobs, which is what the cap compares against (active\nrealtime sessions count via their 60-minute hold; streamed\nminutes settle into spent).\n",
      "required": [
        "scopes",
        "monthly_cap_usd",
        "current_month_spent_usd",
        "current_month_committed_usd"
      ],
      "properties": {
        "scopes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "read",
              "write"
            ]
          }
        },
        "monthly_cap_usd": {
          "type": [
            "number",
            "null"
          ]
        },
        "current_month_spent_usd": {
          "type": "number"
        },
        "current_month_committed_usd": {
          "type": "number"
        }
      }
    },
    "included_hours": {
      "type": "number",
      "description": "Present only while included hours are enforced, for plans that\ninclude hours. Transcription hours included this billing\nmonth.\n"
    },
    "included_hours_used": {
      "type": [
        "number",
        "null"
      ],
      "description": "Hours started this billing month (null = unavailable)."
    },
    "resets_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the included hours reset."
    },
    "extra_usage": {
      "type": "object",
      "description": "The account's extra usage switch, its monthly spend limit and the\nextra usage spend this billing month (spent_usd null =\nunavailable). A start past the included hours answers 402\n`included_hours_exhausted` (extra usage off) or\n`spend_limit_reached`, with `resets_at`; check these first.\n",
      "required": [
        "enabled",
        "limit_usd",
        "spent_usd"
      ],
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "limit_usd": {
          "type": "number"
        },
        "spent_usd": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    }
  }
}