{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snipmat-com/json-schema/snipmat-com-account-response-schema.json",
  "title": "AccountResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snipmat-com-openapi.yml#/components/schemas/AccountResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "attributes": {
          "type": "object",
          "properties": {
            "credits": {
              "type": "object",
              "properties": {
                "total": {
                  "type": "number",
                  "description": "Monthly remaining + purchased pack balance"
                },
                "subscription": {
                  "type": "number",
                  "description": "Remaining monthly included credits"
                },
                "payg": {
                  "type": "number",
                  "description": "Purchased pack credits (never expire)"
                },
                "enterprise": {
                  "type": "number"
                }
              },
              "required": [
                "total",
                "subscription",
                "payg",
                "enterprise"
              ]
            },
            "api": {
              "type": "object",
              "properties": {
                "free_calls": {
                  "type": "number"
                },
                "sizes": {
                  "type": "string"
                }
              },
              "required": [
                "free_calls",
                "sizes"
              ]
            }
          },
          "required": [
            "credits",
            "api"
          ]
        }
      },
      "required": [
        "attributes"
      ]
    }
  },
  "required": [
    "data"
  ]
}