Skip to content

Assign Virtual Numbers

Assign or unassign virtual numbers to/from a user.

  • operation: add to assign, remove to unassign
  • outbound_cvn_ids: List of virtual number IDs for outbound calling
  • inbound_cvn_ids: List of virtual number IDs for inbound calling (user will be set as inbound_user)

POST /integrations/assign-virtual-numbers/

Headers

NameValue
AuthorizationBearer Access Token
Content-Typeapplication/json

Query Parameters

NameTypeRequiredDescription
emailstringNoThe email of Frejun User

Payload

user_idrequired
string

ID of the user to assign/unassign virtual numbers. Refers to the user_id retrieved via retrieve user API

outbound_cvn_ids
array of string

List of virtual number IDs for outbound calling

inbound_cvn_ids
array of string

List of virtual number IDs for inbound calling (user will be set as inbound_user)

operationrequired
string (add | remove)

Operation to perform. add or remove

Response

{
"success": true,
"message": "string"
}