{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mailkite-dev/json-schema/mailkite-dev-get-api-routes-response-schema.json",
  "title": "GetApiRoutesResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/mailkite-dev-openapi-generated.yml#/components/schemas/GetApiRoutesResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Route id (rte_…)."
    },
    "user_id": {
      "type": "string",
      "description": "Owning account (usr_…)."
    },
    "match_pattern": {
      "type": "string",
      "description": "Which recipient addresses this route matches."
    },
    "action": {
      "type": "string",
      "description": "What happens to a matching message."
    },
    "destination": {
      "type": "string",
      "description": "Webhook URL or forward address."
    },
    "agent_prompt": {
      "type": "string",
      "description": "Instructions for the built-in inbox agent."
    },
    "agent_forward_to": {
      "type": "string",
      "description": "Extra addresses the inbox agent's forward tool may reach."
    },
    "agent_context": {
      "type": "string",
      "description": "How much mail the inbox agent may read once the sender is verified."
    },
    "active": {
      "type": "integer",
      "description": "1 while the route is enabled."
    },
    "ack_mode": {
      "type": "string",
      "description": "Webhook acknowledgement strictness."
    },
    "last_status": {
      "type": "string",
      "description": "Outcome of the route's most recent action."
    },
    "last_status_message": {
      "type": "string",
      "description": "Human-readable detail of the last outcome."
    },
    "last_status_code": {
      "type": "integer",
      "description": "Transport status code of the last outcome."
    },
    "last_status_at": {
      "type": "integer",
      "description": "When the last outcome landed."
    },
    "consecutive_failures": {
      "type": "integer",
      "description": "Current failing streak."
    },
    "first_failed_at": {
      "type": "integer",
      "description": "When the current failing streak began."
    },
    "unhealthy_notified_at": {
      "type": "integer",
      "description": "When the owner was emailed about the current streak."
    },
    "signing_secret": {
      "type": "string",
      "description": "Per-route webhook signing secret."
    },
    "created_at": {
      "type": "integer",
      "description": "When the route was created."
    }
  }
}