{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prowl-chat/json-schema/prowl-chat-api-key-created-response-schema.json",
  "title": "ApiKeyCreatedResponse",
  "description": "The one response that carries the raw key — it is never retrievable again.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prowl-chat-openapi.json#/components/schemas/ApiKeyCreatedResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "key": {
      "type": "string",
      "title": "Key",
      "description": "The secret. Shown exactly once; store it now."
    },
    "prefix": {
      "type": "string",
      "title": "Prefix"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "allowed_categories": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Allowed Categories"
    },
    "denied_categories": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Denied Categories"
    },
    "daily_spend_limit_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Daily Spend Limit Usd"
    },
    "total_spend_limit_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total Spend Limit Usd"
    },
    "ip_allowlist": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ip Allowlist"
    }
  },
  "type": "object",
  "required": [
    "id",
    "key",
    "prefix",
    "name"
  ]
}