twilio / twilio-ruby

A Ruby gem for communicating with the Twilio API and generating TwiML
MIT License
1.35k stars 463 forks source link

No way to Retrieve all A2P Brands (.list method filtering out all VETTED_VERIFIED identity_status) - Messaging API #688

Open pjsmith72 opened 8 months ago

pjsmith72 commented 8 months ago

Issue Summary

There is no way to get a comprehensive list of all A2P Brands (associated with our Twillio account). The .list method does not include brands that are in VETTED_VERIFIED identity_status. All other brands are properly included in the .list result (SELF_DECLARED, UNVERIFIED, VERIFIED)

There needs to be some way to receive a comprehensive list of all brands. If not with the .list method, by itself, then could we add a flag to the .list method? Or maybe an entirely new method?

The suggested workaround (subscribe to Brand status Event Streams) will not work for our application for several reasons.

Steps to Reproduce

  1. Follow the Code Snippet below
  2. Compare the resulting list of brands with your true list of brands. If you have any brands that are in VETTED_VERIFIED identity_status, you will notice they are excluded from the API result.

Code Snippet

@twilio_client.messaging.v1.brand_registrations.list(limit: 2000)

Technical details: