{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/feedback1-ai/json-schema/feedback1-ai-api-key-create-schema.json",
  "title": "ApiKeyCreate",
  "description": "Request to create a new API key",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/feedback1-ai-api-keys-api-openapi.yml#/components/schemas/ApiKeyCreate",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Name",
      "description": "Name for the API key (e.g., 'Claude Desktop', 'Zapier')"
    },
    "product_id": {
      "type": "string",
      "title": "Product Id",
      "description": "Product ID this key is scoped to"
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "Optional description"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At",
      "description": "Optional expiration date"
    }
  },
  "type": "object",
  "required": [
    "name",
    "product_id"
  ]
}