API ReferenceOrganizations
Get Organization Usage
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Query Parameters
period?unknown
Time period for usage stats
Default
"current"Value in
"current" | "last_30_days" | "last_90_days" | "last_year"Response Body
application/json
curl -X GET "https://samva.app/api/v1/organizations/usage"{
"usage": {
"smsCount": 0,
"emailCount": 0,
"whatsappCount": 0,
"totalMessages": 0
},
"billing": {
"currentPeriodStart": "2019-08-24T14:15:22Z",
"currentPeriodEnd": "2019-08-24T14:15:22Z",
"estimatedCost": 0,
"currency": "string"
},
"limits": {
"smsLimit": 0,
"emailLimit": 0,
"whatsappLimit": 0
}
}