readyDocs Open the appOpen the app

Number campaigns

Which registration campaign and account a number belongs to.

#List registration campaigns a number can move to

The registration campaign (the carrier campaign from your Registration page) the number sends under now, and the approved registration campaigns on your account it can move to. Needs the manage_phones permission.

Path parameters

idintegerRequired
The number id.
Returns
data.currentstring | null
The carrier id of the registration campaign the number is on, the same as campaign_id on the number.
data.choices[]object[]
Each { campaign_id, name }. Send a campaign_id to Move a number to another registration campaign.
Errors
HTTPCodeWhen
404NUMBER_NOT_FOUNDNo number with this id on your account.
500REGISTRATIONS_UNAVAILABLEReady couldn’t load your registration campaigns. Try again.

#Move a number to another registration campaign

Moves the number onto another of your approved registration campaigns. A registration campaign’s only number stays where it is, because the carriers pause a registration campaign with no numbers. Needs the manage_phones permission.

Path parameters

idintegerRequired
The number id.

Body parameters

campaign_idstringRequired
One of the choices[].campaign_id from List registration campaigns a number can move to.
Errors
HTTPCodeWhen
400REGISTRATION_NOT_ALLOWEDThat registration campaign isn’t approved on your account.
404NUMBER_NOT_FOUNDNo number with this id on your account.
409NUMBER_NOT_MOVABLEThe number isn’t active on a registration campaign yet, so it can’t be moved here. Contact support and we’ll move it for you.
409only_number_on_brandIt’s the only number on its registration campaign. Buy a new number for the other registration campaign instead.
409campaign_number_limitThe target registration campaign already has the most numbers US carriers allow. Move or release one of its numbers first.
500REGISTRATION_MOVE_UNCONFIRMEDReady couldn’t confirm the move. Read the number to see which registration campaign it’s on.

#Take a number back from a sub-account

The reverse of Move a number to a sub-account: the number moves from one of your sub-accounts back to your account. Only a number held by a sub-account directly under yours. Needs the manage_phones permission.

Path parameters

idintegerRequired
The number id.
Returns
messagestring
Number moved back to your main account., or Number already belongs to you when it’s already yours.
registrationobject | null
The registration campaign the number now sends under, when it moved onto one.
Errors
HTTPCodeWhen
404NUMBER_NOT_FOUNDNot a number on your account or on a sub-account directly under it.
500UNASSIGN_NOT_APPLIEDThe move didn’t apply. Try again.
500MOVE_UNCONFIRMEDReady couldn’t confirm the move. Read the number before you try again.