- Prerequisite
- Authentication using Tokens.
- Introduction of API's
- Create a New User/Agent
- Update User/Agent
- Delete User/Agent
- Fetch List of User/Agent (with filter)
- User/Agent Active/Inactive
- Fetch User/Agent Details
- Resent Verification Link
- Reset Password
- Purchase Number
- Fetch Country List
- Fetch List of Available No.
- Fetch List of Number
- Update ASR Configration
- Update TTS Configration
- Attach DVA
- De-Attach DVA
- Assign Team
- Unassign Team
- Create SIP Trunk
- Update SIP Trunk
- Delete SIP Trunk
- Test SIP Trunk
- List SIP Trunk
- Update ASR Configration
- Update TTS Configration
- Attach DVA
- De-Attach DVA
- Assign Team
- Unassign Team
- Create SMS Gateway
- Update SMS Gateway
- Delete SMS Gateway
- List SMS Gateway
- Send SMS
- List Sent SMS
- Create FHIR
- Delete FHIR
- List FHIR
- CSV Uploads
- Fetch Call-ai DVA Template
- Create DVA
- List Your DVA
- Attach Number
- De-Attach Number
- Get Details of DVA
- Update DVA
- Delete DVA
- Make a Voice Call
- Schedule Voice Call
- Create Campaign
- Update Campaign
- Update Scheduler
- Update Dialer
- Call Status For a Number
- DialOut time for a Number
- Fetch List Campaign
- Fetch Single Campaign
- Delete Campaign
- Fetch List Dialer Base
- upload Contact in DialerBase By phonebook Id
- upload Individual Contact in DialerBase
- Upload Contacts in DialerBase through xlsx file For Outreach
- Create Campaign
- Update Campaign
- Update Scheduler
- Update Dialer
- Call Status For a Number
- DialOut time for a Number
- Fetch List Campaign
- Fetch Single Campaign
- Delete Campaign
- Fetch List Dialer Base
- upload Contact in DialerBase By phonebook Id
- upload Individual Contact in DialerBase
- Upload Contacts in DialerBase through xlsx file For Outreach
- Create Phonebook
- List Phonebook
- Fetch Phonebook
- Fetch Phonebook by ID
- Update Phonebook
- Delete Phonebook
- Create Contact
- List Contact
- Fetch Contact
- Fetch Contact by ID
- Update Contact
- Upload Contact Xlsx File
- Delete Contact
- API Reference
- Message Privacy
- Fetch CDR
- Fetch Agent Call Detail
- Fetch Queue|Team Detail
- Fetch Call Recording
- Fetch Call Transcript
- Delete Call Recording
- Delete Call Transcript
- Fetch Total Call Duration In/Out
Overview
Introducing the Call-Ai Users API: Simplifying User Data Management and Access Controls for Your Application
The Call-Ai Users API presents a seamless and efficient solution for developers to handle user data and access controls within their applications. This comprehensive API empowers developers with a wide array of functionalities, including user creation, user editing, team creation, team management, role assignment, and audit log management. These capabilities work in tandem with robust authentication and authorization mechanisms, ensuring a secure and personalized user experience for your application's users.
-
User Data Management Made Easy:
The Users API revolutionizes the way developers handle user data. With just a few simple API calls, you can effortlessly create new users and edit existing ones. The API streamlines the entire process, reducing development time and enabling you to focus on other critical aspects of your application.
-
Effortless Team Creation and Management:
Collaboration lies at the heart of many successful applications. With the Call-Ai Users API, you can effortlessly create teams and manage their memberships. This enables your application to support various team-based functionalities, fostering a sense of unity among users and enhancing productivity.
-
Seamlessly Assign Roles:
Roles play a pivotal role in defining user permissions and access levels. With the Users API, you can efficiently assign roles to individual users or entire teams. This feature allows you to tailor access controls precisely according to your application's requirements, ensuring that users can only access the features and data relevant to their roles.
-
Audit Log Management:
Maintaining a comprehensive audit trail is vital for security and accountability. The Users API enables you to manage audit logs effortlessly. You can track user actions, access attempts, and other critical events in your application, facilitating troubleshooting, compliance, and security analysis.
-
Enhanced Security and Personalization:
User authentication and authorization are paramount concerns for any application. The Call-Ai Users API incorporates robust security measures to protect user data and privacy. By seamlessly integrating with your existing authentication systems, the API ensures that only authorized users can access your application's resources. This results in a personalized and secure user experience, fostering trust and loyalty among your user base.
-
Seamless Integration and Scalability:
The Users API is designed with simplicity and scalability in mind. Its developer-friendly interface allows for easy integration into your application, regardless of its size or complexity. As your user base grows, the API can effortlessly scale to meet the increasing demands, ensuring smooth and uninterrupted user data management.
-
Comprehensive Documentation and Support:
We understand the importance of clear and detailed documentation for developers. The Users API comes with comprehensive documentation, complete with code examples and usage guidelines. Moreover, our dedicated support team is always ready to assist you with any questions or issues you may encounter during integration and development.
In conclusion, the Call-Ai Users API empowers developers with a powerful toolkit for efficient user data management and access controls. Its range of functionalities, combined with robust security measures, ensures a secure and personalized user experience for your application. By simplifying complex processes, the API allows you to focus on delivering a remarkable user experience and driving the success of your application. So, why wait? Integrate the Call-Ai Users API today and take your application to new heights of excellence.
Create a New User/Agent
The create new user API facilitates the addition of a new user to a system or application.
Endpoint URL
Request Variables (Header Params)
You can retrieve the access token by entering the below-mentioned values in the Request Variables:
Variable | Description | Data Type |
---|---|---|
Ocp-Apim-Subscription-Key | Subscription Key of Tenant | String |
Authorization | Jwt token | String |
Request Variables (Body Params)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
user.action | Action defines the activity which will be processed. | String | created |
user.ip | IP refers to a unique numerical label assigned to each device connected to a network that uses the Internet Protocol for communication. | String | 123.345.678.20 |
user.activity | An activity typically refers to a specific action, task, or event that a person or a group of individuals engage in. | String | userCreated |
user.email | Email refers to the unique identity for a user enables to get messages. | String | admin@gmail.com |
user.blocked | Blocked defines whether a account is locked or not. | boolean | false |
user.email_verified | Email verifies defines whether a account is verified or not. | boolean | false |
user.name | Name defines the user personal identifier. | String | vinod |
user.phone.number | A phone number is a numerical sequence used to uniquely identify a telephone line or mobile device for the purpose of making or receiving phone calls. | String | 09099099232 |
user.phone.internationalNumber | An international number refers to a phone number that includes the necessary prefix or country code to make or receive calls from outside a specific country. | String | +91 89898 98989 |
user.phone.nationalNumber | A national number refers to a phone number that is specific to a particular country or region. | String | 089898 98989 |
user.phone.e164Number | E164 is a globally recognized standard for phone number formatting. It defines the structure and numbering plan for international phone numbers. | String | +91 89898 98989 |
user.phone.countryCode | A country code is a numerical prefix assigned to each country or geographical region. | String | IN |
user.phone.dialCode | A dial code, also known as an international dialing code or exit code, is a specific sequence of digits used to initiate an international call. It is dialed before entering the country code and the recipient's phone number. | String | +91 |
user.position | A position refers to a role or job within a company and other entity. | String | DEV |
user.connection | A connection refers to a link between two or more entities | String | Username-Password-Authentication |
user.modified_by | Modified by refers to an entity that appends the changes. | String | admin@gmail.com |
user.created_by | Created By refers to the entity that created the user. | String | admin |
user.created_by_id | Created by id refers to the entity's unique id | String | admin@gmail.com |
user.password | A password is a string of characters or a secret code that is used to authenticate or verify the identity of a user. | String | Admin@123 |
user.employee_id | An employee ID (Identification) is a unique identifier assigned to an employee within an organization. | String | Emp_123 |
user.reporting_manager | A reporting manager is an individual in a supervisory or managerial position within an organization who oversees and directly manages a team or a group of employees. | String | admin |
user.role | A role refers to a specific position, function, or set of responsibilities that an individual or a group of individuals assume within that organization or group. | String | ["customer_admin", "sales"] |
user.org_id | An organization ID, also known as an organization identifier or organization code, is a unique alphanumeric code assigned to identify a specific organization or entity. | String | org_Ihfbyh3bh |
user.user_metadata.password | A password is a string of characters or a secret code that is used to authenticate or verify the identity of a user. | String | Admin@123 |
user.user_metadata.type | Type define the entity individual personality. | String | user |
user.user_metadata.organization_name | An organization name refers to the official name or title of a company, institution, or entity. It is the unique and formal name by which the organization is known and recognized. | String | dev-org |
user.user_metadata.organization_display_name | An organization display name refers to the display name or title of a company, institution, or entity. It is the unique and formal display name by which the organization is displayed. | String | devorg |
user.user_metadata.organization_id | An organization ID is a unique identifier assigned to an organization or entity within a specific system. | String | org_Icgdbfyh3r |
user.user_metadata.tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | String | Tenant_12345 |
user.user_metadata.employee_id | An employee ID (Identification) is a unique identifier assigned to an employee within an organization. | String | Emp_123 |
user.user_metadata.role | A role refers to a specific position, function, or set of responsibilities that an individual or a group of individuals assume within that organization or group. | String | ["customer_admin", "sales"] |
user.roleArray | A role array refers to an array or collection of roles associated with a user or entity within a system or application. | String | ["6bc5e490-047d-4431-ad90-ac6f64e6cbc5", "9ed05a48-bbc2-4041-86c1-c1ffe6ef246d"] |
user.roleArrayToRemove | Role array to be removed refers to a subset or selection of roles within the existing role array that are intended to be removed or revoked from a user or entity within a system. | String | ["d5d6c0d4-39d3-4c30-baec-e3b005d90212", "0bc0788b-4840-4a11-af87-df23427e206e", "eac71c27-d329-4359-87d7-1c447ca77cba", "4c8365b7-e9e2-41c0-9a6f-a6b074161e32"] |
tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | String | Tenant_12345 |
Sample Request
POST https://api.call-ai.com/authentication-ms/v1/auth/api/v1/authentication/ Content-Type: application/json Cache-Control: no-cache Authorization: Bearer •••••••••••• Ocp-Apim-Subscription-Key: •••••••••••• { "user": { "ip": "34.543.66.74", "email": "admin123@gmail.com", "name": "vinod", "phone": { "number": "08989898989", "internationalNumber": "+91 89898 98989", "nationalNumber": "089898 98989", "e164Number": "+918989898989", "countryCode": "IN", "dialCode": "+91" }, "position": "DEV", "created_by": "admin", "reporting_manager": "admin", "user_metadata": { "password": "Admin@123", "organization_name": "dev-org", "organization_display_name": "devorg", "organization_id": "org_IyyPNiNdz9w9mcqs", "tenant_id": "tenant_12345", "employee_id": "emp_123", "role": ["customer_admin", "sales"] } } }
Response Variables
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | Boolean |
Message | Call message on success or error | String |
Data | If API send back some data it will goes here. | object |
error | Contains information related to any error thrown by Call-Ai System. | object |
Response Schema
A successful request returns the HTTP 200 OK status code and a JSON response body as detailed below:
Update User/Agent
The update user API enables the modification of user information in a system or application.
Endpoint URL
Request Variables (Header Params)
You can retrieve the access token by entering the below-mentioned values in the Request Variables:
Variable | Description | Data Type |
---|---|---|
Ocp-Apim-Subscription-Key | Subscription Key of Tenant | String |
Authorization | Jwt token | String |
Request Variables (Body Params)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
user.phone.number | A phone number is a numerical sequence assigned to a telephone line or device to establish communication with other parties. | String | 090908 76534 |
user.phone.internationalNumber | An international number refers to a phone number that includes the necessary prefix or country code to make or receive calls from outside a specific country. | String | +91 90908 76534 |
user.phone.nationalNumber | A national number refers to a phone number that is specific to a particular country or region. | String | 090908 76534 |
user.phone.e164Number | E164 is a globally recognized standard for phone number formatting. It defines the structure and numbering plan for international phone numbers. | String | 919090876534 |
user.phone.countryCode | A country code is a numerical prefix assigned to each country or geographical region. | String | IN |
user.phone.dialCode | A dial code, also known as an international dialing code or exit code, is a specific sequence of digits used to initiate an international call. It is dialed before entering the country code and the recipient's phone number. | String | +91 |
user.user_id | The unique identifier assigned to an individual user within a platform. | String | auth0|645cbb7a0be902874f4b9f28 |
user.status | Status refers to the current state or condition of an object, entity, or process. | String | ACTIVE |
user.statusChange | Status change refers to the transition or modification of the current state or condition of an object, process, or entity within a system or organization. | boolean | false |
user.reporting_manger | Reporting manager refers to the individual to whom an employee directly reports within an organization. | String | Parvis |
user.email | Email refers to the unique identity for a user enables to get messages. | String | testing@gmail.com |
user.action | Action defines the activity which will be processed. | String | edited |
user.ip | IP refers to a unique numerical label assigned to each device connected to a network that uses the Internet Protocol for communication. | String | 122.123.109.21 |
user.name | Name defines the user personal identifier. | String | parvis |
user.role | A role refers to a specific position, function, or set of responsibilities that an individual or a group of individuals assume within that organization or group. | String | ["customer_admin", "sales"] |
user.activity | An activity typically refers to a specific action, task, or event that a person or a group of individuals engage in. | String | reporting_manager has been changed by testing user test from okokok to okokoks |
user.created_by_id | Created by id refers to the entity's unique id | String | sandeep.rawat@call-ai.com |
user.created_by | Created By refers to the entity that created the user. | String | testing user test |
user.created_on | Created On represents the timestamp or date when a particular object, record, or entry was created within a system. It indicates the specific date and time when the creation process occurred. | String | 2023-05-12T08:04:56.82Z |
user.modified_by | Modified by refers to an entity that appends the changes. | String | sandeep.rawat@call-ai.com |
user.position | A position refers to a role or job within a company and other entity. | String | okokkok_pts |
user.employee_id | An employee ID (Identification) is a unique identifier assigned to an employee within an organization. | String | tr12345EHRue |
user.roleArray | A role array refers to an array or collection of roles associated with a user or entity within a system or application. | String | ["6bc5e490-047d-4431-ad90-ac6f64e6cbc5", "9ed05a48-bbc2-4041-86c1-c1ffe6ef246d"] |
user.roleArrayToRemove | Role array to be removed refers to a subset or selection of roles within the existing role array that are intended to be removed or revoked from a user or entity within a system. | String | ["d5d6c0d4-39d3-4c30-baec-e3b005d90212", "0bc0788b-4840-4a11-af87-df23427e206e", "eac71c27-d329-4359-87d7-1c447ca77cba", "4c8365b7-e9e2-41c0-9a6f-a6b074161e32"] |
tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | String | A tenant ID is used to associate each tenant's data with their specific account or instance. |
Sample Request
PATCH https://api.call-ai.com/authentication-ms/v1/auth/api/v1/authentication/ Content-Type: application/json Cache-Control: no-cache Authorization: Bearer •••••••••••••• Ocp-Apim-Subscription-Key: •••••••••••••• { "user": { "phone": { "number": "090908 76534", "internationalNumber": "+91 90908 76534", "nationalNumber": "090908 76534", "e164Number": "919090876534", "countryCode": "IN", "dialCode": "+91" }, "user_id": "auth0|645cbb7a0be902874f4b9f28", "status": "ACTIVE", "reporting_manger": "okokoks", "email": "admin123@gmail.com", "ip": "122.160.141.52", "name": "okokokoko", "role": ["customer_admin", "sales"], "modified_by": "sandeep.rawat@call-ai.com", "position": "okok notq", "employee_id": "tr12345EHRue" }, "tenant_id": "tenant_12345" }
Response Variable
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | string |
Message | Call message on success or error | string |
Data | If API send back some data it will goes here. | object |
error | Contains information related to any error thrown by Call-Ai System. | object |
Response Schema
A successful request returns the HTTP 200 OK status code and a JSON response body as detailed below:
Delete User/Agent
The "Delete User API" is an allows you to remove a user from a system or application.
Endpoint URL
Request Variables (Header Params)
You can retrieve the access token by entering the below-mentioned values in the Request Variables:
Variable | Description | Data Type |
---|---|---|
Ocp-Apim-Subscription-Key | Subscription Key of Tenant | String |
Authorization | Jwt token | String |
Request Variables (Body Params)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
user.action | Action refers to a specific task, operation, or activity that is performed within a system or application. It represents a specific action that needs to be taken or executed. | String | deleted |
user.activity | Activity refers to a specific action or task performed by a user or system within an application or system. | String | User deleted by parvis kakkar |
User.created_by | Created By indicates the entity or user who initiated the creation of a particular object, record, or entry within a system. It identifies the source or originator of the creation process. | String | testing user test |
User.created_by_id | Created By ID is the unique identifier associated with the entity or user who initiated the creation of a specific object, record, or entry within a system. It serves as a reference to identify the creator of the object or entry. | String | Testing.platform@call-ai.com |
User.created_on | Created On represents the timestamp or date when a particular object, record, or entry was created within a system. It indicates the specific date and time when the creation process occurred. | String | 2023-05-11T09:55:06.203Z |
User.email | A user email where the new password will be sent. | String | brecoillitreitto-3538@yopmail.com |
User.ip | IP (Internet Protocol) refers to a unique numerical address assigned to each device connected to a computer network. It serves as a means of identification and enables devices to communicate with each other over the network. | String | 122.146.232.20 |
User.modified_by | Modified By indicates the entity or user who initiated the modification of a particular object, record, or entry within a system. | String | Testing.platform@call-ai.com |
User.tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | String | tenant_12345 |
User.user_id | The unique identifier assigned to an individual user within a platform. | String | auth0|232d4r4hueh37h3u |
tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | String | tenant_12345 |
Sample Request
DELETE https://api.call-ai.com/authentication-ms/v1/auth/api/v1/authentication/ Content-Type: application/json Cache-Control: no-cache Authorization: Bearer •••••••••••••• Ocp-Apim-Subscription-Key: •••••••••••••• { "user": { "email": "admin123@gmail.com", "ip": "122.160.141.52", "modified_by": "parvis.kakkar@call-ai.com", "tenant_id": "tenant_12345", "user_id": "auth0|645cbb7a0be902874f4b9f28" } }
Response Variable
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | string |
Message | Call message on success or error | string |
Data | If API send back some data it will goes here. | object |
Data.message | Message on success or error | string |
error | Contains information related to any error thrown by Call-Ai System. | object |
Response Schema
A successful request returns the HTTP 200 OK status code and a JSON response body as detailed below:
Fetch List of User/Agent (with filter)
The "Filter User API"allows you to filter user on the basis of role,login time and status.
Endpoint URL
Request Variables (Header Params)
You can retrieve the access token by entering the below-mentioned values in the Request Variables:
Variable | Description | Data Type |
---|---|---|
Ocp-Apim-Subscription-Key | Subscription Key of Tenant | String |
Authorization | Jwt token | String |
Request Variables (Body Params)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
pageSize | "pageSize" refers to a parameter or attribute that determines the number of items or records to be displayed on a single page | integer | 1 |
pageIndex | "pageIndex" is a parameter or attribute that represents the index or number of a specific page within a paginated set of data. | integer | 10 |
CheckboxAll | "CheckboxAll" refers to a user interface element, typically a checkbox, that provides an option to select or deselect all available checkboxes within a group or list. | boolean | false |
Active | "Active" is a status or state indicating that something is currently operational, valid, or enabled. | boolean | false |
Inactive | "Inactive" usually represents users who are not currently active | boolean | false |
VerificationPending | VerificationPending" refers to a state or status indicating that a certain action or process is pending verification or approval. | boolean | true |
selectedRolebyuser | "selectedRolebyuser" represents the role or roles selected by a user within a system or application. | String | [“agent”,”customer”] |
field | "field" generally refers to a specific attribute, property, or data field within a dataset or object. | String | name |
order | "order" is a term commonly used in sorting or arranging data in a specific sequence. | String | 1 |
org_id | "org_id" refers to the organization ID or identifier that uniquely identifies a specific organization within a system or application. | String | org_12345 |
name | "name" refers to the name or label assigned to a particular user, field, or entity for identification or display purposes. | String | parvis |
Sample Request
POST https://api.call-ai.com/authentication-ms/v1/auth/api/v1/authentication/users/fetch/filter Content-Type: application/json Cache-Control: no-cache Authorization: Bearer •••••••••••••• Ocp-Apim-Subscription-Key: •••••••••••••• { "pageSize": 1, "pageIndex": 10, "selectedRolebyuser": ["agent", "customer"], "status": ["Active", "Inactive", "VerificationPending"], "field": "name", "order": "1", "org_id": "org_12345" }
Response Variable
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | string |
Message | Call message on success or error | string |
Data.response | If API send back some data it will goes here. | string |
data.users.start | It represents the starting position or index of a sequence or range. | integer |
data.users.limit | The term "limit" is commonly used to define the maximum number of items, elements, or iterations allowed within a given context. | integer |
data.users.length | It refers to the size, extent, or count | integer |
data.users.users[].blocked | "blocked" means that certain actions or privileges are denied to a user due to specific restrictions or security measures. | boolean |
data.users.users[].created_at | The specific date the user is created. | string |
data.users.users[].email | A user email where the new password will be sent. | string |
data.users.users[].email_verified | Email verifies defines whether a account is verified or not. | |
data.users.users[].identities[].connection | It refers to the establishment of a link, association, or relationship between two entities | string |
data.users.users[].identities[].provider | It refers to a third-party service or entity that offers a particular service or resource to users. | string |
data.users.users[].identities[].user_id | It is a unique identifier assigned to each user in a system or application to distinguish them from one another. | string |
data.users.users[].identities[].isSocial | Is social is an boolean value. | boolean |
data.users.users[].name | Name defines the user personal identifier. | string |
data.users.users[].nickname | Short name that defines the user identity. | string |
data.users.users[].picture | A Url string defining the picture detail. | string |
data.users.users[].updated_at | "Updated at" refers to the date and time when a particular piece of information or content was last modified or revised. | string |
data.users.users[].user_id | The unique identifier assigned to an individual user within a platform. | string |
data.users.users[].user_metadata.employee_id | An employee ID (Employee Identification Number) is a unique code assigned to an employee within an organization. | string |
data.users.users[].user_metadata.organization_display_name | An organization display name refers to the display name or title of a company, institution, or entity. | string |
data.users.users[].user_metadata.organization_id | An organization ID is a unique identifier assigned to an organization or entity within a specific system. | string |
data.users.users[].user_metadata.organization_name | An organization name refers to the official name or title of a company, institution, or entity. It is the unique and formal name by which the organization is known and recognized. | string |
data.users.users[].user_metadata.password | The password that is currently set or in use for a user. | string |
data.users.users[].user_metadata.role[] | A role refers to a specific position, function, or set of responsibilities that an individual or a group of individuals assume within that organization or group. | object |
data.users.users[].user_metadata.tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | string |
data.users.users[].user_metadata.trial_expiration_date | An expiration date, also known as an expiry date or validity date, refers to the specific date or time period after which a entity is no longer considered valid, | string |
data.users.users[].user_metadata.type | Type define the entity individual personality. | string |
data.users.users[].last_password_reset | Password reset refers to the process of changing or creating a new password for an account or system when the original password is forgotten, compromised, or no longer secure. | string |
data.users.users[].last_login | Last login refers to the most recent instance when a user successfully accessed a particular system. | string |
data.users.users[].last_ip | Last IP (Internet Protocol) refers to the IP address associated with the user's most recent login activity. | string |
data.users.users[].logins_count | Login count refers to the total number of times a user has successfully logged into a system | iteger |
data.users.users[].app_metadata.authorization.roles[] | Last login refers to the most recent instance when a user successfully accessed a particular system | object |
data.users.users[].app_metadata.authorization.permissions[] | Permissions are the rights and privileges granted to a user that determine what actions they can perform and what resources they can access within the system. | object |
data.users.total | Total refer to the overall or cumulative value or count. | iteger |
data.total | Total refer to the overall or cumulative value or count. | |
error | Contains information related to any error thrown by Call-Ai System. | object |
Response Schema
A successful request returns the HTTP 200 OK status code and a JSON response body as detailed below:
User/Agent Active/Inactive
This API allows the updating of the user's status to either ACTIVE or INACTIVE.
Endpoint URL
Request Variables (Header Params)
You can retrieve the access token by entering the below-mentioned values in the Request Variables:
Variable | Description | Data Type |
---|---|---|
Ocp-Apim-Subscription-Key | Subscription Key of Tenant | String |
Authorization | Jwt token | String |
Request Variables (Body Params)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
action | Action refers to a specific task, operation, or activity that is performed within a system or application. It represents a specific action that needs to be taken or executed. | String | edited |
ip | IP (Internet Protocol) refers to a unique numerical address assigned to each device connected to a computer network. It serves as a means of identification and enables devices to communicate with each other over the network. | String | 122.123.120.43 |
Email refers to electronic mail, which is a digital communication method used for sending and receiving messages over the internet. | String | Parvis.test@call-ai.com | |
status | Status refers to the current condition, state, or position of an object, entity, or system. It provides information about the current state of something, indicating whether it is active, inactive | boolean | false |
tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | String | Tenant_12345 |
user_id | User ID is a unique identifier assigned to an individual user within a system or application. | String | auth0|shdjsdbbbdhbdhbd2323 |
activity | Activity refers to a specific action or task performed by a user or system within an application or system. | String | Status has been changed by testing user test from ACTIVE to INACTIVE |
created_by | Created By indicates the entity or user who initiated the creation of a particular object, record, or entry within a system. It identifies the source or originator of the creation process. | String | Testing user test |
created_on | Created On represents the timestamp or date when a particular object, record, or entry was created within a system. It indicates the specific date and time when the creation process occurred. | String | 2023-04-18T12:12:12.431Z |
created_by_id | Created By ID is the unique identifier associated with the entity or user who initiated the creation of a specific object, record, or entry within a system. It serves as a reference to identify the creator of the object or entry. | String | Parvis.test@call-a.com |
Sample Request
PATCH https://api.call-ai.com/authentication-ms/v1/auth/api/v1/authentication/statusUpdate Content-Type: application/json Cache-Control: no-cache Authorization: Bearer •••••••••••••• Ocp-Apim-Subscription-Key: •••••••••••••• { "ip": "122.160.141.52", "email": "admin123@gmail.com", "status": false, "tenant_id": "tenant_12345", "user_id": "auth0|643e891c170832ee0b05a804", "activity": "Status has been changed by testing user test from ACTIVE to INACTIVE", "modified_by": "admin123@gmail.com" }
Response Variable
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | string |
Message | Call message on success or error | string |
Data | If API send back some data it will goes here. | object |
error | Contains information related to any error thrown by Call-Ai System. | object |
Response Schema
A successful request returns the HTTP 200 OK status code and a JSON response body as detailed below:
Fetch User/Agent Details
The "Find User By Email"allows user lookup based on their email address.".
Endpoint URL
Request Variables (Header Params)
You can retrieve the access token by entering the below-mentioned values in the Request Variables:
Variable | Description | Data Type |
---|---|---|
Ocp-Apim-Subscription-Key | Subscription Key of Tenant | String |
Authorization | Jwt token | String |
Request Variables (Body Params)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
A user email where the new password will be sent. | String | testuser11@gmail.com | |
tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | String | Tenant_1234 |
Sample Request
GET https://api.call-ai.com/authentication-ms/v1/auth/api/v1/authentication/user/{email}/{tenant_id} Cache-Control: no-cache Authorization: Bearer •••••••••••••• Ocp-Apim-Subscription-Key: ••••••••••••••
Response Variable
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | string |
Message | Call message on success or error | string |
Data.response | If API send back some data it will goes here. | string |
data.userFromDB[].phone.number | A phone number is a numerical sequence assigned to a telephone line or device to establish communication with other parties. | string |
data.userFromDB[].phone.internationalNumber | An international number refers to a phone number that includes the necessary prefix or country code to make or receive calls from outside a specific country. | string |
data.userFromDB[].phone.nationalNumber | A national number refers to a phone number that is specific to a particular country or region. | string |
data.userFromDB[].phone.e164Number | E164 is a globally recognized standard for phone number formatting. It defines the structure and numbering plan for international phone numbers. | string |
data.userFromDB[].phone.countryCode | A country code is a numerical prefix assigned to each country or geographical region. | string |
data.userFromDB[].phone.dialCode | A dial code, also known as an international dialing code or exit code, is a specific sequence of digits used to initiate an international call. It is dialed before entering the country code and the recipient's phone number. | string |
data.userFromDB[]._id | An ID, short for identification, is a unique identifier assigned to a particular entity within a system or database. | string |
data.userFromDB[].modified_by | Modified By refers to the entity or user who made the most recent modifications or changes to a particular record, such as an account, document, or data entry. | string |
data.userFromDB[].created_by | Created By represents the entity or user responsible for creating a particular record or entry within a system or database. | string |
data.userFromDB[].password | The password that is currently set or in use for a user. | string |
data.userFromDB[].base_password_changed | A base password change refers to the act of modifying or updating an existing password to create a new password. | string |
data.userFromDB[].status | Status refers to the current state or condition of an object, entity, or process. | string |
data.userFromDB[].isDeleted | Is Deleted is a boolean attribute that indicates whether a record or entity has been marked as deleted or removed from the system. | string |
data.userFromDB[].type | Type refers to the categorization or classification of an object or entity based on its characteristics, attributes, or purpose. | string |
data.userFromDB[].blocked | Blocked indicates whether a user, account, or entity has been restricted or prevented from accessing certain functionalities, services, or resources. | string |
data.userFromDB[].email | An email is an electronic message that can be sent and received over the internet using an email address. | string |
data.userFromDB[].name | Name represents the personal or organizational identifier used to refer to an individual, company, or entity. | string |
data.userFromDB[].user_id | User ID is a unique identifier assigned to an individual user within a system or application. | string |
data.userFromDB[].tenant_id | Tenant ID is a unique identifier used to distinguish different tenants or organizations within a multi-tenant system or application. | string |
data.userFromDB[].asterisk_user_id | User ID is a unique identifier assigned to an individual user within a system or application. | string |
data.userFromDB[].user_password | The password that is currently set or in use for a user. | string |
data.userFromDB[].user_metadata.type | Type define the entity individual personality. | string |
data.userFromDB[].user_metadata.password | The password that is currently set or in use for a user. | string |
data.userFromDB[].user_metadata.organization_name | An organization name refers to the official name or title of a company, institution, or entity. It is the unique and formal name by which the organization is known and recognized. | string |
data.userFromDB[].user_metadata.organization_display_name | An organization display name refers to the display name or title of a company, institution, or entity. It is the unique and formal display name by which the organization is displayed. | string |
data.userFromDB[].user_metadata.organization_id | An organization ID is a unique identifier assigned to an organization or entity within a specific system. | string |
data.userFromDB[].user_metadata.tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | string |
data.userFromDB[].user_metadata.employee_id | An employee ID (Identification) is a unique identifier assigned to an employee within an organization. | string |
data.userFromDB[].user_metadata.role | A role refers to a specific position, function, or set of responsibilities that an individual or a group of individuals assume within that organization or group. | string |
data.userFromDB[].role | A role refers to a specific position, function, or set of responsibilities that an individual or a group of individuals assume within that organization or group. | string |
data.userFromDB[].position | A position refers to a role or job within a company and other entity. | string |
data.userFromDB[].employee_id | An employee ID (Identification) is a unique identifier assigned to an employee within an organization. | string |
data.userFromDB[].reporting_manager | A reporting manager is an individual in a supervisory or managerial position within an organization who oversees and directly manages a team or a group of employees. | string |
data.userFromDB[].created_at | The specific date the user is created. | string |
data.userFromDB[].updated_at | The specific date the user is updated. | string |
error | Contains information related to any error thrown by Call-Ai System. | object |
Response Schema
A successful request returns the HTTP 200 OK status code and a JSON response body as detailed below:
Resent Verification Link
The "Resend Verification Link"allows to resend verification link to user's email.
Endpoint URL
Request Variables (Header Params)
You can retrieve the access token by entering the below-mentioned values in the Request Variables:
Variable | Description | Data Type |
---|---|---|
Ocp-Apim-Subscription-Key | Subscription Key of Tenant | String |
Authorization | Jwt token | String |
Request Variables (Body Params)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
auuth_id | The term "auth ID" typically refers to an authentication identifier or authentication ID. It is a unique identifier or token assigned to an entity, user, or device for authentication purposes within a system or application. | String | auth0|32732he73r73rb37r33e7tr |
Sample Request
GET https://api.call-ai.com/authentication-ms/v1/auth/api/v1/authentication/resend/verification/{auth_id} Cache-Control: no-cache Authorization: Bearer •••••••••••••• Ocp-Apim-Subscription-Key: ••••••••••••••
Response Variable
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | string |
Message | Call message on success or error | string |
error | Contains information related to any error thrown by Call-Ai System. | object |
Response Schema
A successful request returns the HTTP 200 OK status code and a JSON response body as detailed below:
Reset Password
his API enables the updating of a user's password with new credentials.
Endpoint URL
Request Variables (Header Params)
You can retrieve the access token by entering the below-mentioned values in the Request Variables:
Variable | Description | Data Type |
---|---|---|
Ocp-Apim-Subscription-Key | Subscription Key of Tenant | String |
Authorization | Jwt token | String |
Request Variables (Body Params)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
user.email | A user email where the new password will be sent. | String | testuser11@gmail.com |
user.current_password | The password that is currently set or in use for a user. | String | Admin@123 |
user.new_password | The new password is the one that will replace the old or current password. | String | Admin@12345 |
user.user_id | The unique identifier assigned to an individual user within a platform. | String | auth0|643d280e23106bb0 |
user.base_password_changed | A base password change refers to the act of modifying or updating an existing password to create a new password. | boolean | true |
tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | String | Tenant_1234 |
Sample Request
PATCH https://api.call-ai.com/authentication-ms/v1/auth/api/v1/authentication/password Content-Type: application/json Cache-Control: no-cache Authorization: Bearer •••••••••••••• Ocp-Apim-Subscription-Key: •••••••••••••• { "user": { "email": "admin123@gmail.com", "current_password": "Admin@123", "new_password": "Admin@123", "user_id": "auth0|643d280e23106bb01368df74", "base_password_changed": true }, "tenant_id": "tenant_12345" }
Response Variable
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | string |
Message | Call message on success or error | string |
Data | If API send back some data it will goes here. | object |
error | Contains information related to any error thrown by Call-Ai System. | object |
Response Schema
A successful request returns the HTTP 200 OK status code and a JSON response body as detailed below: