twilio / twilio-php

A PHP library for communicating with the Twilio REST API and generating TwiML.
MIT License
1.55k stars 559 forks source link

sms user daily send sms total limit api #661

Closed viralc9065 closed 3 years ago

viralc9065 commented 3 years ago

this is a feature request for programmable sms api

Currently I am using below api to fetch user sent sms count

$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$twilio = new Client($sid, $token);
 $records = $twilio->usage->records->today->read(["category" => "sms"]);
$records[0]->count

but after sending more then 500 sms start getting error {"code":63038,"message":"Account ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX exceeded the 500 daily messages limit","more_info":"https:\/\/www.twilio.com\/docs\/errors\/63038","status":429}

Issue Summary

is there any way we can get the user daily send sms limit ( here in case 500), how I can fetch the user's send sms total limit

eshanholtz commented 3 years ago

Hi @viralc9065

You should have received an email notification that your account has been flagged for additional user vetting. If you look in the console, you should see a banner with the same warning. You can appeal the decision by emailing uservetting@twilio.com. You will need to provide information about your account detailed in the suspension notification.

Because this is a temporary message cap for new unmanaged accounts, we do not have a designated api endpoint to fetch this value.