{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/senlay-cloud/json-schema/senlay-cloud-agent-register-response-schema.json",
  "title": "AgentRegisterResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/senlay-cloud-openapi.json#/components/schemas/AgentRegisterResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "apiKey": {
      "type": "string",
      "description": "Returned only on initial registration or authorized rotation; save it securely."
    },
    "keyPreview": {
      "type": "string"
    },
    "recoveryToken": {
      "type": "string",
      "description": "Returned only on initial registration or authorized rotation; save it separately from the API key."
    },
    "agentName": {
      "type": "string"
    },
    "existing": {
      "type": "boolean"
    },
    "rotated": {
      "type": "boolean"
    },
    "message": {
      "type": "string"
    }
  }
}