User Management API
Open API playground All endpoints
Create and manage users, roles, licenses, calling access, and user settings.
Get all users
GET/api/v2/integrations/users/
List all users in the authenticated organization.
Returns each user's details including phone number, roles, license type, virtual numbers, and addon licenses.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email | query | string | null | The email of Frejun User |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string",
"data": [
{
"first_name": "string",
"last_name": "string",
"email": "email",
"is_active": true,
"virtual_numbers": [
{
"id": 0,
"name": "string",
"number": 0,
"virtual_number_id": "string",
"country_code": "string",
"type": "string",
"location": "string",
"default_calling_number": true,
"default_sms_number": true
}
],
"date_joined": "string",
"roles": [
"string"
],
"user_id": "string",
"phone": "string",
"licenses": [
"string"
],
"status": "string"
}
]
}Create user
POST/api/v2/integrations/users/
Create a new user in the authenticated organization.
Validates the input, creates the user, assigns a license, and returns the created user details including roles, license type, and phone number.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email | query | string | null | The email of Frejun User |
Request body
creatorrequiredstringEmail of the user creating this user
emailrequiredstringEmail of the user to be created
rolesrequiredarray of integerList of role IDs to be assigned to the user
licenserequiredstringLicense type for the user (Plan or Viewer)
addon_licensesarray of string | nullList of addon licenses if applicable. Possible values are: AUTODIAL, BROWSER CALLING (For INR accounts only), WHATSAPP BUSINESS
numberrequiredstringPhone number of user to be created (E.164 format)
first_namerequiredstringFirst name of the user
last_namestring | nullLast name of the user
disable_invitation_emailbooleanSet to True to disable sending invitation email to the user
Example request
{
"creator": "string",
"email": "string",
"roles": [
0
],
"license": "string",
"addon_licenses": [],
"number": "string",
"first_name": "string",
"last_name": "string",
"disable_invitation_email": false
}Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string",
"data": {
"user_id": "string",
"email": "email",
"roles": [
0
],
"license": "string",
"addon_licenses": [
"string"
],
"number": {},
"first_name": "string",
"last_name": "string",
"is_active": false
}
}Retrieve a user
GET/api/v2/integrations/user/
Retrieve detailed information for a user by email.
Returns user profile, organization, subscription, virtual numbers, phone number, license type, and browser-calling access status.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email required | query | string | Email of the user |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string",
"data": {
"first_name": "string",
"last_name": "string",
"email": "string",
"bb_calling": true,
"virtual_numbers": [
{
"id": 0,
"name": "string",
"number": 0,
"virtual_number_id": "string",
"country_code": "string",
"type": "string",
"location": "string",
"default_calling_number": true,
"default_sms_number": true
}
],
"user_id": "string",
"currency": "string",
"license": "string",
"addon_licenses": [
"string"
],
"edge_domain": "string",
"account": {
"call_reasons": [
"string"
],
"call_outcomes": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"subscription": {
"plan": {
"name": null,
"price": 0,
"currency": "string",
"billing_cycle": "string",
"discount": null,
"discounted_price": 0
},
"status": "string"
},
"credit": {
"currency": "string",
"balance": 0,
"subscription_payments": true,
"notification_threshold": 0
}
},
"number_masking": true,
"number": {
"country_code": "string",
"phone_number": "string",
"id": 0,
"loc": "string",
"created_at": "date-time"
},
"status": "string"
}
}Update a user
PATCH/api/v2/integrations/user/
Update an existing user identified by email.
Supports updating first/last name, active status, roles, phone number, licenses, and browser-calling access. Handles license assignment/unassignment when toggling active status.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email required | query | string | Email of the user |
Request body
numberstring | nullPhone number of user to be created (E.164 format)
rolesarray of integer | nullUpdated list of role ids of user. This will replace the older roles assigned to the user
first_namestring | nullFirst name of the user
last_namestring | nullLast name of the user
is_activeboolean | nullTo activate or deactivate the user. On deactivating a user, all licenses are unassigned too. On activating, Viewer license is assigned by default
licensestring | nullOne of Plan or Viewer. In trial accounts, Plan license will be assigned by default
assigned_addon_licensesarray of string | nullList of addon licenses to assign to the user. Possible values are: AUTODIAL, BROWSER CALLING (For INR accounts only), WHATSAPP BUSINESS
unassigned_addon_licensesarray of string | nullList of addon licenses to unassign from the user. Possible values are: AUTODIAL, BROWSER CALLING (For INR accounts only), WHATSAPP BUSINESS
browser_callsboolean | nullTo enable or disable Browser Based calling for the user (without removing the licenses assigned to the user). Ignored and set to True if BROWSER CALLING license is assigned via the same API request.
statusstring | nullOne of ONLINE or AWAY. If set to AWAY, the user will not receive any calls
Example request
{
"number": "string",
"roles": [
0
],
"first_name": "string",
"last_name": "string",
"is_active": true,
"license": "string",
"assigned_addon_licenses": [
"string"
],
"unassigned_addon_licenses": [
"string"
],
"browser_calls": true,
"status": "string"
}Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string",
"data": {
"user_id": "string",
"first_name": "string",
"last_name": "string",
"email": "email",
"is_active": true,
"number": {
"id": 0,
"country_code": "string",
"phone_number": "string",
"loc": "string",
"created_at": "date-time"
},
"roles": [],
"browser_calls": true,
"license": "string",
"addon_licenses": [
"string"
],
"status": "string"
}
}Delete a user
DELETE/api/v2/integrations/user/
Delete a user by email.
Verifies the user belongs to the authenticated organization and dispatches an asynchronous task to remove the user and clean up related resources. Returns HTTP 204 on success.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email required | query | string | Email of the user |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{}List roles
GET/api/v2/integrations/roles/
List all roles available in the authenticated organization.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email | query | string | null | The email of Frejun User |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string",
"data": [
{
"id": 0,
"title": "string"
}
]
}