Documentation

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

This API will list all available active sub accounts for phone service on the account that can be used
Method: Get/Post

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


Optional Parameters Sample Description
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_phones_subaccount?key=12134651Gsuid7349[&page_numer=1]

Response :

  1. {
  2. "sub_accounts":
  3. [
  4. {
  5. "sub_account_name":"account 1",
  6. "sub_account_id":"5659556",
  7. "sub_account_active_phone_numbers":"2",
  8. "legal_info_completed":"true"
  9. },
  10. {
  11. "sub_account_name":"account 2",
  12. "sub_account_id":"956323",
  13. "sub_account_active_phone_numbers":"2",
  14. "legal_info_completed":"false"
  15. },
  16. {
  17. "sub_account_name":"account 2",
  18. "sub_account_id":"65681555",
  19. "sub_account_active_phone_numbers":"0",
  20. "legal_info_completed":"false"
  21. }
  22. ]
  23. }
  24. ------OR------
  25. {
  26. "error_message":"error message"
  27. }