{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usagerail/json-schema/usagerail-post-v1-consumers-response-schema.json",
  "title": "PostV1ConsumersResponse",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/usagerail-openapi-generated.yml#/components/schemas/PostV1ConsumersResponse",
  "type": "object",
  "properties": {
    "consumer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "external_id": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "email_verified": {
          "type": "boolean"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "plan": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "version": {
              "type": "integer"
            }
          }
        },
        "quota": {
          "type": "object",
          "properties": {
            "behavior": {
              "type": "string"
            },
            "limit": {
              "type": "string"
            }
          }
        },
        "rate_limits": {
          "type": "object",
          "properties": {
            "per_second": {
              "type": "integer"
            },
            "per_minute": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "current_period": {
          "type": "object",
          "properties": {
            "period_start": {
              "type": "string",
              "format": "date-time"
            },
            "period_end": {
              "type": "string",
              "format": "date-time"
            },
            "billable_requests": {
              "type": "string"
            },
            "billable_units": {
              "type": "string"
            }
          }
        },
        "balance": {
          "type": [
            "string",
            "null"
          ]
        },
        "active_keys": {
          "type": "integer"
        },
        "subscription": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}