FruxonDocs
Agent NetworkTriggers

Dry-runs the supplied trigger bindings + sample payload through the same resolver the dispatcher uses at fire time

Returns one entry per submitted binding. On success the entry carries the resolved `parameters` dict the agent executor would receive; on failure the entry carries an `error` message (unknown parameter name, type-coercion mismatch, agent with no deployed revision).

POST
/v1/tenants/{tenant}/triggers/preview
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

tenant*string

The tenant identifier

bindings?

Bindings to preview. One Fruxon.Model.Triggers.PreviewBindingResult comes back per binding in the same order.

payload*

Sample payload the resolver walks. Should mirror the canonical per-source shape on Fruxon.Model.Triggers.TriggerFirePayload so the preview matches what the real dispatcher would build.

filter?

Optional content filter to dry-run against Fruxon.Model.Triggers.PreviewTriggerRequest.Payload. When supplied, the response's Fruxon.Model.Triggers.PreviewTriggerResponse.FilterMatched reports whether this payload would pass the filter (and therefore reach the bound agents) at fire time. Null = no filter = always matches.

[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/triggers/preview" \  -H "Content-Type: application/json" \  -d '{    "payload": {      "source": "UNSPECIFIED"    }  }'
{
  "bindings": [
    {
      "agentId": "string",
      "parameters": {},
      "error": "string"
    }
  ],
  "filterMatched": false
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty