numbers

Route a number to an agent or SIP extension

route_mode is REQUIRED. agent -> also send agent_id (assistant_id also accepted, as an alias — the underlying column is named assistant_id, but every other endpoint calls this resource 'agent', so send agent_id if in doubt); extension -> also send route_extension_id; none -> unroute.

put/api/v1/numbers/{id}

Request

  • Base URL: https://www.callagent.pro
  • URL: https://www.callagent.pro/api/v1/numbers/{id}
  • Auth: HTTP bearer

Path parameters

idinteger required

Request body

route_mode'agent' | 'extension' | 'none' required
agent_idinteger nullable

Preferred name for this field

assistant_idinteger nullable

Alias for agent_id. Send either one; sending both with different values is a 422

route_extension_idinteger nullable

Response

Routing saved. Returns an acknowledgement only; re-read GET /numbers to see the new target.

okboolean

Changes

No recorded changes to this operation across all 1 revision of this API.