Jump to content
  • 0

phone number

Avneet Singh


6 answers to this question

Recommended Posts

  • 0


/v2/phone_numbers?prefix={PREFIX}&quantity={QUANTITY}&offset={OFFSET}&country={COUNTRY} should return numbers, and their status. Don't know if it shows who it is assigned to. Worst case, you could loop through accounts and use GET /v2/accounts/{ACCOUNT_ID}/phone_numbers

Someone might know a better method, or you can look at how the number manager in monsterui does it.

Link to comment
Share on other sites

  • 0

AFAIK, only way to do this is to use /v2/accounts/{account_id}/phone_numbers

If you set account_id to your root re-seller account, it will return all numbers for subaccounts also and you can loop through them/page through. You can also apply filters, such as "?filter_state=in_service or ?created_from=63627345744

in_service should mean that it's assigned to a callflow. avaialble should mean that it is not assigned to a callflow. You can look at the assigned_to field to see if it's assigned to a subaccount/an account other than your root re-seller account.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...