Retrieves a specific agent revision.
Returns the immutable snapshot of an agent's configuration at the given revision number, including the flow graph (nodes, edges, prompts, tool bindings), the input parameter schema, and the revision's deployment status. The revision identifier may be a numeric version, or pass `draft` to inspect the in-progress unsaved revision being edited. Deployed revisions are read-only; use the create-agent-revisions endpoints to fork a new draft and deploy it with `POST .../revisions/{revision}:deploy`.
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 revision identifier.
The tenant identifier
Response Body
curl -X GET "https://api.fruxon.com/v1/tenants/string/agents/string/revisions/string"{
"agentId": "string",
"agentRevision": 0,
"comment": "string",
"parametersMetadata": [
{
"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,
"uiHint": "CODE",
"rules": []
}
],
"outputContract": {
"format": "TEXT",
"schema": "string"
},
"subAgents": [
{
"id": "string",
"slug": "string",
"integrationId": "sub_agent",
"agentId": "string",
"displayName": "string",
"description": "string",
"toolType": "AGENT_TOOL",
"actionType": "READ_ONLY",
"resultType": "STRING",
"authSettings": {
"supportsOAuth": false,
"oAuth": []
},
"flow": {
"steps": [],
"edges": []
},
"parametersMetadata": [],
"avatarFileId": "string"
}
],
"flow": {
"steps": [],
"edges": [
{
"source": "string",
"target": "string"
}
]
},
"integrationSlots": [
{
"id": "00000000-0000-0000-0000-000000000000",
"integrationId": "string",
"displayName": "string",
"tenantConfigId": "00000000-0000-0000-0000-000000000000"
}
],
"integrationBindings": {},
"assets": [
{
"id": "string",
"displayName": "string",
"description": "string",
"sourceType": "string",
"vectorized": true,
"ragAssetId": "00000000-0000-0000-0000-000000000000",
"assetLink": "string"
}
],
"createdBy": "string",
"actor": "string",
"createdAt": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Gets agent revision cost split by environment.
At least one `environment` query parameter is required; repeat the param to compare multiple environments side-by-side (`?environment=production&environment=staging`). Unknown slugs (not present in the tenant's environments table) are rejected with 400 — silent-empty would mask FE typos that drift from real config.
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.