{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fastaf/main/json-schema/fastaf-created-api-key-schema.json",
  "title": "CreatedApiKey",
  "x-generated": "2026-10-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fastaf-openapi.json#/components/schemas/CreatedApiKey",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "prefix",
    "name",
    "status",
    "created_at",
    "last_used_at",
    "key",
    "warning"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "prefix": {
      "type": "string",
      "pattern": "^faf_live_"
    },
    "name": {
      "type": "string",
      "maxLength": 100
    },
    "status": {
      "type": "string",
      "const": "active"
    },
    "created_at": {
      "type": "string"
    },
    "last_used_at": {
      "type": "null"
    },
    "key": {
      "type": "string",
      "pattern": "^faf_live_[0-9A-Za-z]{32}$"
    },
    "warning": {
      "type": "string"
    }
  }
}