Skip to content

One project's spend.

GET
/api/usage/projects/{id}
curl --request GET \
--url https://app.agentic.figentra.com/api/usage/projects/example \
--cookie session=<session>
id
required
string
/^prj_[0-9A-Za-z]{8,64}$/
from
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
to
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/

OK

Media typeapplication/json
object
projectId
required
string
/^prj_[0-9A-Za-z]{8,64}$/
from
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
to
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
totalCents
required
integer
<= 9007199254740991
byDay
required
Array<object>
object
day
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
costCents
required
integer
<= 9007199254740991
byRun
required
Array<object>
object
runId
required
string
/^run_[0-9A-Za-z]{8,64}$/
costCents
required
integer
<= 9007199254740991
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
monthSpentCents
required
integer
<= 9007199254740991
monthLimitCents
required
Any of:
integer
<= 9007199254740991

Example generated

{
"projectId": "example",
"from": "2026-04-15",
"to": "2026-04-15",
"totalCents": 1,
"byDay": [
{
"day": "2026-04-15",
"costCents": 1
}
],
"byRun": [
{
"runId": "example",
"costCents": 1,
"createdAt": "2026-04-15T12:00:00Z"
}
],
"monthSpentCents": 1,
"monthLimitCents": 1
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
/^[a-z][a-z0-9_]*$/
message
required
string
>= 1 characters
details
object
key
additional properties

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
}
}
}