v1

latestOpenAPI 3.0.32026-07-26279.1 KB

Daily Usage Data

Retrieve daily usage statistics for your organization

post/v2/organization/daily-usage-data

Request body

startDateinteger required

Unix timestamp in milliseconds for the start date

endDateinteger required

Unix timestamp in milliseconds for the end date

Example request

{
  "startDate": 1752227938831,
  "endDate": 1752227938831
}

Response

Usage data retrieved successfully

Example response

{
  "data": [
    {
      "date": 1752192000000,
      "ideOpened": true,
      "agentPrompts": 4,
      "agentAccepts": 3,
      "agentFullAccepts": 1,
      "agentAcceptedLinesAdded": 134,
      "agentAcceptedLinesRemoved": 37,
      "inlineAcceptedLinesAdded": 23,
      "inlineAcceptedLinesRemoved": 12,
      "autocompleteAccepts": 2,
      "autocompleteShown": 6,
      "autocompleteAcceptedCharactersAdded": 237,
      "email": "user1@firebender.com"
    }
  ],
  "period": {
    "startDate": 1752227938831,
    "endDate": 1752227938831
  }
}
All 2 operations