{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audioscrape-com/json-schema/audioscrape-com-me-response-schema.json",
  "title": "MeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audioscrape-com-account-api-openapi.yml#/components/schemas/MeResponse",
  "type": "object",
  "required": [
    "user",
    "workspace",
    "plan",
    "api_version"
  ],
  "properties": {
    "api_key": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/MeApiKey",
          "description": "API key the request was authenticated with. `null` when authenticated\nvia session cookie (e.g. logged-in browser hitting the API)."
        }
      ]
    },
    "api_version": {
      "type": "string",
      "description": "Effective dated API version this request was evaluated against, per the\n`Audioscrape-Version` header / `api_keys.pinned_version` resolution."
    },
    "plan": {
      "$ref": "#/$defs/MePlan"
    },
    "user": {
      "$ref": "#/$defs/MeUser"
    },
    "workspace": {
      "$ref": "#/$defs/MeWorkspace",
      "description": "Workspace this request is scoped to (resolved from the API key or the\nsession's active workspace). List all your workspaces at `/api/workspaces`."
    }
  },
  "$defs": {
    "MeApiKey": {
      "type": "object",
      "required": [
        "id",
        "key_name",
        "pinned_version"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "key_name": {
          "type": "string"
        },
        "pinned_version": {
          "type": "string",
          "description": "Dated API version the key is pinned to (see `Audioscrape-Version`)."
        }
      }
    },
    "MePlan": {
      "type": "object",
      "required": [
        "name",
        "limits"
      ],
      "properties": {
        "limits": {
          "$ref": "#/$defs/PlanLimitsResponse"
        },
        "name": {
          "type": "string",
          "description": "Plan slug: `free`, `starter`, `basic`, `pro`, `enterprise`."
        }
      }
    },
    "MeUser": {
      "type": "object",
      "required": [
        "id",
        "email"
      ],
      "properties": {
        "email": {
          "type": "string"
        },
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "member_since": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO-8601 UTC timestamp of account creation."
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "MeWorkspace": {
      "type": "object",
      "required": [
        "id",
        "slug",
        "name"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "name": {
          "type": "string"
        },
        "role": {
          "type": [
            "string",
            "null"
          ],
          "description": "Your role in this workspace (`owner`, `admin`, or `member`). `null`\nwhen the authenticated user has no membership row here."
        },
        "slug": {
          "type": "string",
          "description": "Stable URL slug, e.g. `audioscrape`."
        }
      }
    },
    "PlanLimitsResponse": {
      "type": "object",
      "required": [
        "webhooks_enabled",
        "max_api_keys"
      ],
      "properties": {
        "data_calls_per_month": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Monthly data-API call limit (podcasts, episodes, persons, entities,\ncharts, trending). `null` means unlimited; `0` means disabled."
        },
        "keyword_alerts": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Maximum number of keyword alerts a user can create. `null` = unlimited."
        },
        "max_api_keys": {
          "type": "integer",
          "format": "int64"
        },
        "searches_per_month": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Monthly text-search limit. `null` means unlimited."
        },
        "semantic_searches_per_month": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Monthly semantic / hybrid search limit. `null` means unlimited;\n`0` means the feature is disabled on this plan."
        },
        "storage_mb": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Storage limit for private uploads, in megabytes. `null` = unlimited."
        },
        "transcription_minutes_per_month": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Monthly transcription quota for private uploads (in audio minutes).\n`null` = unlimited; `0` = uploads disabled."
        },
        "webhooks_enabled": {
          "type": "boolean",
          "description": "Whether webhook delivery is enabled for keyword alerts on this plan."
        }
      }
    }
  }
}