{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aquanode-io/json-schema/aquanode-io-create-api-key-schema.json",
  "title": "CreateApiKey",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aquanode-io-openapi.json#/components/schemas/CreateApiKey",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "read",
          "deploy",
          "full",
          "storage"
        ]
      },
      "minItems": 1
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "name",
    "scopes"
  ]
}