One project's spend.
GET
/api/usage/projects/{id}
const url = 'https://app.agentic.figentra.com/api/usage/projects/example';const options = {method: 'GET', headers: {cookie: 'session=<session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.agentic.figentra.com/api/usage/projects/example \ --cookie session=<session>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”from
string format: date
to
string format: date
Responses
Section titled “Responses”OK
Media typeapplication/json
object
projectId
required
string
from
required
string format: date
to
required
string format: date
totalCents
required
integer
byDay
required
Array<object>
object
day
required
string format: date
costCents
required
integer
byRun
required
Array<object>
object
runId
required
string
costCents
required
integer
createdAt
required
string format: date-time
monthSpentCents
required
integer
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}default
Section titled “default”Error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
Example generated
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" } }}