---
title: "Assign DID to a sub-account"
method: POST
path: "/api/v1/account/{auth_id}/numbers/{e164}/assign-subaccount"
tags: ["Phone Numbers"]
---

# Assign DID to a sub-account

`POST /api/v1/account/{auth_id}/numbers/{e164}/assign-subaccount`

## Request

- Base URL: `https://api.vobiz.ai`
- URL: `https://api.vobiz.ai/api/v1/account/{auth_id}/numbers/{e164}/assign-subaccount`
- Auth: API key in header `X-Auth-ID` and API key in header `X-Auth-Token`
- TypeScript: <https://skmtc.dev/vobiz/apis/vobiz-api/docs/api/v1/account/:auth_id/numbers/:e164/assign-subaccount/post.ts> (a function with typed inputs; its response is checked against the schema)

Assign a parent-pool DID to a sub-account.

## Path parameters

- `auth_id` string, required
- `e164` string, required

## Request body

- object
  - `sub_account_id` string, required

## Response `200`

DID assigned to the sub-account

## Other responses

- `204`: DID assigned to the sub-account
- `404`: Number or sub-account not found

---

[API](https://skmtc.dev/vobiz/apis/vobiz-api.md) - [All operations](https://skmtc.dev/vobiz/apis/vobiz-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vobiz/apis/vobiz-api/revisions/863f08cd6737?raw)
