{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/feedback1-ai/json-schema/feedback1-ai-api-key-created-schema.json",
  "title": "ApiKeyCreated",
  "description": "Response after creating an API key - includes the full key (only shown once!)",
  "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/ApiKeyCreated",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "product_id": {
      "type": "string",
      "title": "Product Id"
    },
    "product_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Product Name",
      "description": "Product name for display"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "key": {
      "type": "string",
      "title": "Key",
      "description": "The full API key - SAVE THIS, it won't be shown again!"
    },
    "key_prefix": {
      "type": "string",
      "title": "Key Prefix",
      "description": "Key prefix for identification"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "product_id",
    "description",
    "key",
    "key_prefix",
    "created_at",
    "expires_at"
  ]
}