Skip to main content
GET
/
analytics
/
credits
Get credits analytics
curl --request GET \
  --url https://app2.freyavoice.ai/api/v2/analytics/credits \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "message": "<string>",
    "result": {
      "creditsData": {
        "dailyCredits": {},
        "totalTransactions": 123,
        "totalCreditsUsed": 123
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

workspaceId
string<uuid>
required

Workspace ID

Minimum string length: 1
startDate
string

Start date for credits period (ISO format)

endDate
string

End date for credits period (ISO format)

Response

Credits analytics

success
enum<boolean>
required
Available options:
true,
false
data
object
required