{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adadiamonds-com/json-schema/adadiamonds-com-api-key-request-schema.json",
  "title": "ApiKeyRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adadiamonds-com-onboarding-api-openapi.yml#/components/schemas/ApiKeyRequest",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "A short label for this key."
    },
    "env": {
      "type": "string",
      "enum": [
        "sandbox",
        "production"
      ],
      "default": "sandbox"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "catalog:read",
          "content:read"
        ]
      }
    },
    "contact_email": {
      "type": "string",
      "format": "email"
    }
  }
}