{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xpoz-ai/json-schema/xpoz-ai-access-key-created-schema.json",
  "title": "AccessKeyCreated",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xpoz-ai-openapi.json#/components/schemas/AccessKeyCreated",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "const": true
    },
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "accessKey": {
          "type": "string"
        },
        "accessKeyPrefix": {
          "type": "string"
        },
        "keyName": {
          "type": "string"
        },
        "expiresAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "accessKey",
        "accessKeyPrefix",
        "keyName",
        "createdAt"
      ]
    },
    "message": {
      "type": "string"
    },
    "isExisting": {
      "type": "boolean"
    }
  },
  "required": [
    "success",
    "data",
    "message",
    "isExisting"
  ]
}