Gets per-environment execution summaries for an agent.
Returns aggregated execution count, total cost, and last activity time for each environment that has execution records for this agent. Pass `?include=trends` to also populate week-over-week deltas (current 7-day window vs. prior 7-day window).
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The unique identifier of the agent.
The tenant identifier
Query Parameters
Comma-separated list of expansion options. Currently recognized:
trends. Unknown values are ignored.
Optional window start as Unix milliseconds (inclusive). When neither
bound is supplied, the summary is all-time. If either bound is supplied,
this defaults to 30 days before to (or now), mirroring
the environmentCostTimeseries windowing convention.
int64Optional window end as Unix milliseconds (exclusive). Defaults to now when a window is requested.
int64Response Body
curl -X GET "https://api.fruxon.com/v1/tenants/string/agents/string/environmentsSummary"[
{
"environmentSlug": "string",
"name": "string",
"executionCount": 0,
"totalCost": 0,
"relevanceCheckCount": 0,
"lastActiveAt": 0,
"errorCount": 0,
"avgDurationMs": 0,
"p95DurationMs": 0,
"trends": {
"costWowDelta": 0,
"executionsWowDelta": 0,
"errorRateWowDeltaPp": 0
}
}
]{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Executes an agent using its currently deployed revision with streaming output.
Returns results as Server-Sent Events (SSE) for real-time progress updates.
Lists execution records for an agent.
Returns a paginated list of all executions, ordered by most recent first. Optionally filter by time range using the `startTime` and `endTime` query parameters.