Skip to main content
POST
Assign DID to a sub-account
Assigns a DID from the parent account’s number pool to a sub-account. Once assigned, the sub-account can place and receive calls on the number.
Authenticate with X-Auth-ID / X-Auth-Token (the parent account’s credentials).
Path casing: this endpoint uses lowercase /account/ and the singular assign-subaccount segment - unlike the capital-A /Account/ used by inventory, purchase, list, trunk-assign, and release. Copy the path verbatim or you will get a 404.
URL-encode the number. Replace the + in the E.164 path segment with %2B (e.g. %2B919876543210).

Path parameters

  • auth_id - the parent (MA_) account’s Auth ID.
  • e164 - the DID in E.164 format, URL-encoded (%2B for +). The number must be owned by the parent account’s pool.

Request body

cURL Request

Response

A successful assignment returns 200 or 204 with no body.
Error Response (404 Not Found): the number is not in the parent pool, or the sub-account does not exist:
Error Response - 404 Not Found
Moving the number back to the parent pool is subject to a 15-day cool-off - see Unassign DID.

Authorizations

X-Auth-ID
string
header
required

Your Vobiz account Auth ID

X-Auth-Token
string
header
required

Your Vobiz account Auth Token

Path Parameters

auth_id
string
required

Your account Auth ID

Example:

"MA_XXXXXX"

e164
string
required

The number in E.164, URL-encoded (use %2B instead of +).

Example:

"%2B919876543210"

Body

application/json
sub_account_id
string
required
Example:

"SA_XXXXXX"

Response

DID assigned to the sub-account