Skip to content

Virtual Number Management API

Open API playground All endpoints

View and assign virtual numbers for inbound and outbound calling.

List virtual numbers

GET/api/v2/integrations/retrieve-virtual-numbers/

List all virtual numbers for the authenticated organization.

Requires the 'manage numbers' feature permission. Returns each virtual number's details including assigned inbound and outbound users.

Auth: Authorization header or Authorization: Bearer

Parameters

NameInTypeDescription
emailquerystring | null

The email of Frejun User

Responses

StatusDescription
200

Successful Response

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

Example response (200)
{
  "success": true,
  "message": "string",
  "data": [
    {
      "name": "string",
      "number": "string",
      "country_code": "string",
      "created_at": "date-time",
      "updated_at": "date-time",
      "virtual_number_id": "string",
      "inbound_user_id": "string",
      "outbound_user_ids": [
        "string"
      ]
    }
  ]
}

Assign or unassign virtual numbers

POST/api/v2/integrations/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)

Auth: Authorization header or Authorization: Bearer

Parameters

NameInTypeDescription
emailquerystring | null

The email of Frejun User

Request body

user_idrequiredstring

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

outbound_cvn_idsarray of string | null

List of virtual number IDs for outbound calling

inbound_cvn_idsarray of string | null

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

operationrequired"add" | "remove"

Operation to perform. add or remove

Example request
{
  "user_id": "string",
  "outbound_cvn_ids": [
    "string"
  ],
  "inbound_cvn_ids": [
    "string"
  ],
  "operation": "add"
}

Responses

StatusDescription
200

Successful Response

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

Example response (200)
{
  "success": true,
  "message": "string"
}