💰 Quota Management​
Wagy uses a dual quota system to provide maximum flexibility for users:
- PRO Quota: Paid quota that has an expiration date (expired date). This quota will be used as the top priority for message delivery.
- Free Quota: A free message allowance provided every month. If the PRO Quota is exhausted, the system will automatically use this Free Quota (if still available).
Response Components​
| Field | Description |
|---|---|
monthly_limit | Total Free Quota allowance per month. |
used | Number of messages already used. |
remaining | Remaining quota available for sending messages. |
Response Example​
{
"status": "success",
"data": {
"device_id": "dev-12345",
"free": {
"monthly_limit": 500,
"used": 100,
"remaining": 400
},
"pro": {
"total": 1000,
"used": 0,
"remaining": 1000,
"expires_at": null
}
}
}
Check device quota
GET/:device_id/quota
Get a summary of available Free and PRO quota for the device.
Request​
Responses​
- 200
- 401
- 404
OK
Unauthorized
Device not found