{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algenta-ai/json-schema/algenta-ai-apikey-created-schema.json",
  "title": "APIKeyCreated",
  "description": "Returned once at key creation — raw key shown here only.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algenta-ai-account-api-openapi.yml#/components/schemas/APIKeyCreated",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "label": {
      "type": "string",
      "title": "Label"
    },
    "key_prefix": {
      "type": "string",
      "title": "Key Prefix"
    },
    "device_limit": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Device Limit",
      "description": "Max registered devices for this key on the local runtime path. 0 preserves the plan's unlimited or no-local-runtime behavior."
    },
    "raw_key": {
      "type": "string",
      "title": "Raw Key",
      "description": "The full API key — shown ONCE, store it securely."
    },
    "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",
    "label",
    "key_prefix",
    "device_limit",
    "raw_key",
    "created_at"
  ]
}