cURL
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 } }
Retrieve daily usage statistics for your organization
Organization API key from Settings → API Keys
Unix timestamp in milliseconds for the start date
1752227938831
Unix timestamp in milliseconds for the end date
Usage data retrieved successfully
Array of daily usage records
Show child attributes
Was this page helpful?