Documentation

LogIn
  • Home
  • API
  • Attach A Phone Number to a sub-account or update attachment

This API is used to Attach A Phone Number to a sub-account or update attachment to another sub-account
Method: Get/Post

Base URL : https://hubbucs.com/site/api/attach_subaccount_for_phone
Mandatory Parameters Sample Description
key 374593457034859 The company account API key, you can get from company settings > API settings
phone_number 9651112222 One of the available phone numbers got from the search phone numbers API


Optional Parameters Sample Description
sub_account_id ID of the sub account if this and sub_account_name both not sent, the phone number will be registered under the main account

if it is sent and the id doesn't match an existing sub account (it will return an error)
sub_account_name string if this and sub_account_name both not sent, the phone number will be registered under the main account

if it is sent and the name doesn't match an existing sub account (it will return an error)

Example:


				

Example :

https://hubbucs.com/site/api/attach_subaccount_for_phone?key=12134651Gsuid7349[¶meter=parameter¶meter=parameter]

Response :

  1. {
  2. "message":"success",
  3. "sub_account_id":"2545",
  4. }
  5. ------OR------
  6. {
  7. "error_message":"error message"
  8. }