{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/synchronity-app/json-schema/synchronity-app-agent-registration-request-schema.json",
  "title": "AgentRegistrationRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/synchronity-app-openapi.yml#/components/schemas/AgentRegistrationRequest",
  "type": "object",
  "required": [
    "agent_name",
    "scopes"
  ],
  "properties": {
    "agent_name": {
      "type": "string",
      "description": "Human-readable name for the agent."
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "read_products",
          "manage_cart",
          "execute_checkout",
          "read_orders"
        ]
      },
      "minItems": 1
    },
    "audience": {
      "type": "string",
      "description": "Site ID to scope this token to, or omit for cross-site token (aud='*')."
    },
    "ttl": {
      "type": "integer",
      "description": "Token TTL in seconds. Default 3600, max 86400.",
      "minimum": 60,
      "maximum": 86400,
      "default": 3600
    }
  }
}