Reading Facebook's documentation, there are various levels of limits for the messages a business can send in 24 hours.
1K business-initiated conversations
10K business-initiated conversations
100K business-initiated conversations
An unlimited number of business-initiated conversations
What I need via an API call is the current limit and the number of messages sent in 24 hours, so I can halt any further sends from my application if the limit is nearly reached. Do you know what API call should I execute in order to get the limit?
At the moment, the only API call that comes close to this result is the following:
GET https://graph.facebook.com/v17.0/{phone-number-id}/phone_numbers?access_token={access_token}
the API call returns this JSON:
{ "data": [ { "verified_name": "{company-name}", "code_verification_status": "EXPIRED", "display_phone_number": "{company-number}", "quality_rating": "GREEN", "platform_type": "CLOUD_API", "throughput": { "level": "STANDARD" }, "webhook_configuration": { "application": "{webhook-url}" }, "id": "{phone-number-id}" } ] }
but what I except is something like this
{ "id": "your-phone-number-id", "quality_rating": "GREEN", "message_limit": 1000, "next_limit_reset_timestamp": "2024-06-06T00:00:00Z", "tier": "TIER_1" }