{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alphabazaar-ai/json-schema/alphabazaar-ai-api-key-create-response-schema.json",
  "title": "ApiKeyCreateResponse",
  "description": "POST /api/auth/api-keys",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alphabazaar-ai-auth-api-openapi.yml#/components/schemas/ApiKeyCreateResponse",
  "properties": {
    "success": {
      "type": "boolean",
      "title": "Success"
    },
    "api_key": {
      "$ref": "#/$defs/ApiKeyDetail"
    },
    "warning": {
      "type": "string",
      "title": "Warning"
    },
    "next_step": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Step"
    }
  },
  "type": "object",
  "required": [
    "success",
    "api_key",
    "warning"
  ],
  "$defs": {
    "ApiKeyDetail": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "key_prefix": {
          "type": "string",
          "title": "Key Prefix"
        },
        "raw_key": {
          "type": "string",
          "title": "Raw Key"
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        },
        "agent_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agent Name"
        },
        "agent_version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agent Version"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "key_prefix",
        "raw_key",
        "created_at"
      ],
      "title": "ApiKeyDetail"
    }
  }
}