Move Phone Number

Phone numbers

Move Phone Number

In the console, developers do this from the Numbers page: open the number's menu and choose Move to another workspace….

POST/phone-numbers/{number}/move

In the console, developers do this from the Numbers page: open the number's menu and choose Move to another workspace….

Moves a number, keeping its digits, from the workspace the request runs in to another workspace of the same developer: the developer's own, or any of its customers. Send it from the developer's own workspace, or as the customer that holds the number with Katexs-Workspace; a key made for one customer cannot. The number leaves every agent and calling pool where it was and arrives answered by nobody — point it with PATCH /phone-numbers/{number} (as the target workspace) once it is there.

Rent continues from the next period on the target. The month already paid is not charged again, and inside one developer both workspaces bill the developer, so no money moves.

A brought number (on your own carrier account) moves only when both workspaces have that same account's keys saved. Refused while the number is on a call. Safe to retry: repeating a move that already succeeded to the same workspace answers the same 200 (for a day). Needs a full key.

Path parameters

numberstringrequired
The number, in any spelling — compared on its digits (8 to 15 of them). Encode a leading + as %2B, or leave it out.

Headers

Katexs-Workspacestring
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.

Request body

toWorkspacestringrequired
The org_… id of the workspace to move it to: the developer's own, or one of its customers.

Example request

bash
curl -X POST "https://app.katexs.com/api/v1/phone-numbers/{number}/move" \
  -H "Authorization: Bearer $KATEXS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "toWorkspace": "org_5c1d7e2a-9b3f-4a6e-8d20-7f4b1c9e3a58"
}'

Responses

StatusDescription
200The number moved. It is unassigned in the target workspace.
400toWorkspace is missing.
401The key is missing, wrong or revoked. The answer is always the same, whichever it is.
403The key is not a developer's (number_move_needs_developer), the target's plan cannot hold a rented number (plan_required), or the key's scope is below full.
404This workspace holds no such number (not_found), or toWorkspace is unknown or not in this developer's family (workspace_not_found, the same sentence either way).
409number_move_same_workspace, number_on_live_call, number_move_in_progress (the same number is already being moved), number_move_other_region (a rented number to a workspace billed in the other region), number_move_legacy_number (a number set up before workspace-level phone accounts existed: contact support) or number_move_carrier_account (a brought number whose account's keys are not saved in both workspaces).
410toWorkspace is a deleted customer. Restore it first.
429Over a per-minute limit. Wait for Retry-After seconds. code and limit say which limit: rate_limit_resources (240 requests a minute for the workspace), rate_limit_family (2,400 across a developer's customers), rate_limit_calls, rate_limit_messages, rate_limit_codes, rate_limit_code_recipient, concurrent_calls or number_daily_limit.
503The phone network did not take the move. The number is still in this workspace, answered by no agent; try again in a few minutes.

Response fields

numberstringrequired
The number's digits.
sourcestringrequired
One of: rented, brought.
fromstringrequired
The workspace it left.
tostringrequired
The workspace that holds it now.
paidThroughstring | nullrequired
The last month (YYYY-MM) already paid, charged to the workspace it left. The target is charged from the next. Null for a brought number.
200 response
{
  "number": "918041234567",
  "source": "rented",
  "from": "org_9e4b2c71-3d5a-4f80-b6e1-2a7c0d8f5b93",
  "to": "org_5c1d7e2a-9b3f-4a6e-8d20-7f4b1c9e3a58",
  "paidThrough": "2026-10"
}

Last updated November 2026 · Found a problem? Email support@katexs.com