Documentation

LogIn
  • Home
  • API
  • List Active Phone Numbers on the Account

This API will list all available activated phone numbers on the account that can be used
Method: Get/Post

Base URL : https://hubbucs.com/site/api/list_phone_numbers
Mandatory Parameters Sample Description
key 374593457034859 The company account API key, you can get from company settings > API settings


Optional Parameters Sample Description
email [email protected] email for the user
page_number 2 Number of the page, (# of records per page is 30 records), default value : 1

Example:


				

Example :

https://hubbucs.com/site/api/list_phone_numbers?key=12134651Gsuid7349[&page_numer=1]

Response :

  1. {
  2. "phone_numbers":
  3. [
  4. {
  5. "phone_number":"+16283268766",
  6. "sub_account_id":"0",
  7. "sub_account_name":""
  8. },
  9. {
  10. "phone_number":"+16283268767",
  11. "sub_account_id":"645655",
  12. "sub_account_name":"sub account1"
  13. },
  14. {
  15. "phone_number":"+16283268768",
  16. "sub_account_id":"0",
  17. "sub_account_name":""
  18. }
  19. ]
  20. }
  21. ------OR------
  22. {
  23. "error_message":"error message"
  24. }