Gets the execution parameters for an agent.
Returns the parameters required to execute the agent, including input schema, default values, and validation rules.
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
The revision identifier
Response Body
curl -X GET "https://api.fruxon.com/v1/tenants/string/agents/string/revisions/string/parameters"{
"parameters": [
"string"
],
"metadata": [
{
"name": "string",
"index": 0,
"type": "STRING",
"typeName": "STRING",
"integerRange": {
"min": 0,
"max": 0
},
"floatRange": {
"min": 0,
"max": 0
},
"options": [],
"asset": {
"providers": null,
"contentTypes": null,
"vectorized": false
},
"displayName": "string",
"description": "string",
"required": false,
"secret": false,
"secretResolvable": false,
"defaultValue": "string",
"jsonSchema": null,
"minLength": 0,
"maxLength": 0,
"pattern": "string",
"validator": "string",
"uiHint": "CODE",
"tableHint": {
"rowKey": "string",
"readOnlyColumns": [],
"maxRows": null
},
"rules": []
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Gets aggregated per-model token usage for a specific agent revision or all revisions.
Returns one row per `(provider, model)` pair seen in this revision's executions, summing input tokens, output tokens, and call counts so callers can rank model spend and detect drift after a revision change. Pass `*` as the revision to aggregate across every revision the agent has ever run, which is useful for top-of-funnel dashboards; pass a specific revision number to attribute usage to one deployed version. Pair with the revision cost endpoints for dollar-cost breakdowns rather than raw tokens. Without `from` and `to` the rollup covers all time; with either it covers that window, read on the same timestamps as the cost timeseries (a missing `from` is 30 days before `to`), so the two reconcile over the same range. Days kept only as daily summaries come back as `summarized` rows with no revision (all-revisions reads only).
Creates a new agent revision.
Creates a draft revision with the specified configuration. The revision is not active until deployed via the deploy endpoint.