Skip to main content
POST
/
v2
/
organization
/
daily-usage-data
Daily Usage Data
curl --request POST \
  --url https://api.firebender.com/v2/organization/daily-usage-data \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "startDate": 1752227938831,
  "endDate": 1752227938831
}
'
{
  "data": [
    {
      "date": 1752192000000,
      "ideOpened": true,
      "agentPrompts": 4,
      "agentAccepts": 3,
      "agentFullAccepts": 1,
      "agentAcceptedLinesAdded": 134,
      "agentAcceptedLinesRemoved": 37,
      "inlineEdits": 0,
      "inlineEditAccepts": 0,
      "inlineAcceptedLinesAdded": 23,
      "inlineAcceptedLinesRemoved": 12,
      "autocompleteAccepts": 2,
      "autocompleteShown": 6,
      "autocompleteAcceptedCharactersAdded": 237,
      "autocompleteAcceptedCharactersRemoved": 0,
      "email": "[email protected]"
    }
  ],
  "period": {
    "startDate": 1752227938831,
    "endDate": 1752227938831
  }
}

Authorizations

X-API-Key
string
header
required

Organization API key from Settings → API Keys

Body

application/json
startDate
integer<int64>
required

Unix timestamp in milliseconds for the start date

Example:

1752227938831

endDate
integer<int64>
required

Unix timestamp in milliseconds for the end date

Example:

1752227938831

Response

Usage data retrieved successfully

data
object[]
required

Array of daily usage records

period
object
required