- 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 Number API: Streamlining Number Management and Revolutionizing Communication Systems
In today's fast-paced digital world, effective communication is a vital aspect of any successful business. However, managing phone numbers and incorporating advanced speech technologies can be a cumbersome and time-consuming process. That's where the innovative Call-Ai Number API comes into play, aiming to simplify number management and enhance communication systems with unparalleled ease and efficiency.
The Call-Ai Number API is a cutting-edge solution that empowers businesses and developers alike to harness the full potential of their communication infrastructure. By leveraging this powerful API, users can effortlessly search, purchase, and configure Direct Inward Dial (DID) numbers, while seamlessly integrating Text-to-Speech (TTS) and Automated Speech Recognition (ASR) functionalities through the Call AI RESTful API.
Let's delve deeper into the features and capabilities that the Call-Ai Number API offers:
-
Streamlined Number Management:
With the Call-Ai Number API, the tedious process of managing phone numbers becomes a thing of the past. Users can now easily organize and administer their DID numbers from a single centralized platform, eliminating the need for multiple systems or complex manual interventions.
-
Effortless Number Acquisition:
Acquiring new DID numbers has never been simpler. Through the Number API's intuitive interface, users can effortlessly search for available numbers based on their preferred criteria, such as location, area code, or specific digits. Once the desired number is found, the purchase process is seamless, ensuring businesses have instant access to the resources they need.
-
Seamless Configuration of TTS and ASR:
Communication systems greatly benefit from the integration of advanced speech technologies like Text-to-Speech (TTS) and Automated Speech Recognition (ASR). The Call-Ai Number API facilitates easy configuration of TTS, allowing businesses to convert text into natural-sounding speech, enhancing customer interactions and automating voice responses. Simultaneously, ASR enables the API to transcribe spoken language into text, opening up possibilities for voice-enabled applications and voice analytics.
-
RESTful API Integration:
The Call-Ai Number API adopts the widely acclaimed RESTful API architecture, ensuring smooth integration with existing communication systems and facilitating developers to build custom solutions tailored to their specific requirements. Its developer-friendly documentation and comprehensive SDKs (Software Development Kits) make the integration process straightforward, saving both time and resources.
-
Security and Reliability:
Call-Ai prioritizes the security and reliability of its services, providing users with a robust and scalable platform. The API is designed to handle high call volumes and is equipped with top-notch security measures, ensuring sensitive information and interactions remain protected.
In conclusion, the Call-Ai Number API is a game-changer in the realm of communication systems. By simplifying number management and offering seamless integration of TTS and ASR capabilities, businesses can now provide enhanced customer experiences, drive productivity, and unlock new opportunities for growth. Whether you are a large enterprise seeking to optimize your communication infrastructure or a developer working on cutting-edge applications, the Call-Ai Number API is here to transform the way you interact and communicate. Embrace the future of communication technology today with Call-Ai!
Purchase Number
The "Buy Number" API allows you to programmatically purchase or acquire phone numbers from a service provider or telecommunications company.
Endpoint URL
https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/buy
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 Param)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
tenant_id | A tenant ID is a unique identifier utilized to associate the data of each tenant with their specific account or instance. | string | Tenant_12345 |
msisdn | MSISDN refers to the unique identifiers used in telecommunication networks to represent mobile phone numbers. | string | 9876543210 |
customer_email | Customer email refers to the email address associated with a customer's account or profile. | string | customer123@gmail.com |
is_active | The key indicated whether the entity is active or not. | boolean | true |
cost | Cost refers to the amount of money or resources required to acquire/buy a number. | string | 0.9 |
country | A country is a distinct and sovereign geographical and political entity that is typically characterized by a defined territory, a stable government, and a recognized international status. | string | US |
An email address is a unique identifier used for sending and receiving electronic mail messages. | string | admin123@gmail.com |
Sample Request
POST https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/buy Content-Type: application/json Cache-Control: no-cache Authorization: Bearer ••••••••• Ocp-Apim-Subscription-Key: ••••••••• { "tenant_id": "tenant_12345", "msisdn": "19212093845", "customer_email": "customer123@gmail.com", "country": "US", "type": "mobile-lvn" }
Response Variables
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 Country List
The "Fetch All Country List" API provides a comprehensive list of countries worldwide. It allows you to retrieve data about each country, including details such as country name, capital, population, area, languages spoken, currency used, time zones, and more. This API is commonly used in applications that require country-related information, such as travel websites, e-commerce platforms, or educational resources. By making a request to the API endpoint, you can obtain an array of country objects that can be used to populate dropdown menus, display country information, or perform various data operations related to countries.
Endpoint URL
https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/countries
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 |
Sample Request
GET https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/countries Cache-Control: no-cache Authorization: Bearer ••••••••• Ocp-Apim-Subscription-Key: •••••••••
Response Variables
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | string |
Message | Call message on success or error | string |
Data.id | Unique ID Call | string |
Data.name | Name of the country | string |
Data.flag | Country flag code | string |
Data.code | Country code | string |
Data.dial_code | Country dial code | 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 Available No.
The "Fetch All Available Numbers" API allows you to retrieve a list of available phone numbers from a service provider or telecommunications company. This API is commonly used in applications that require phone number selection.
Endpoint URL
https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/available?countryCode={countryCode}&index={index}&type={type}&page_size={page_size}[&pattern][&search_pattern]
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 Param)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
countryCode | A country code is a numerical prefix assigned to each country or territory in order to uniquely identify it when making international phone calls. | string | US |
index | An index is a data structure that enhances the efficiency of data retrieval operations. | integer | 0 |
type | Type defines the entity individual personality. | string | user |
page_size | Page size refers to the number of records or items that are displayed or returned on each page of a paginated result set. | integer | 1 |
pattern | A pattern refers to a recurring sequence or arrangement of elements that exhibits a certain structure or characteristic. | string | search_pattern |
search_pattern | A search pattern is a sequence of characters or criteria used to search for specific information within a dataset | integer | 1 |
Sample Request
GET https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/available?countryCode={countryCode}&index={index}&type=mobile-lvn&page_size={page_size}&search_pattern=0 Cache-Control: no-cache Authorization: Bearer ••••••••• Ocp-Apim-Subscription-Key: •••••••••
Response Variables
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | string |
Message | Call message on success or error | string |
data.numbers.country | Country code | string |
data.numbers.msisdn | MSISDN stands for Mobile Station International Subscriber Directory Number. It is a unique identification number assigned to a mobile device in a mobile network. In simpler terms, MSISDN is the phone number associated with a mobile device. | string |
data.numbers.cost | Cost refers to the amount of money or resources required to acquire, produce, or maintain something. | string |
data.numbers.type | Type refers to a blueprint or template that defines the properties and behaviors of objects. | string |
data.numbers.features | Features refers to specific qualities, characteristics or attributes that define or describe something. | string |
data.count | A numerical value that represents the total number of items, occurrences, or elements in a set or group. | integer |
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 Number
The "Fetch All Purchased Numbers" API allows you to retrieve a list of phone numbers that have been purchased or acquired through a service provider.
Endpoint URL
https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/purchased/{tenant_id}
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 Param)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | string | tenant_12345 |
Sample Request
GET https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/purchased/{tenant_id} Cache-Control: no-cache Authorization: Bearer ••••••••• Ocp-Apim-Subscription-Key: •••••••••
Response Variables
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | string |
Message | Call message on success or error | string |
data.purchased_numbers_vonage.count | A numerical value that represents the total number of numbers purchased | string |
data.purchased_numbers_vonage.numbers[].country | Country code | string |
data.purchased_numbers_vonage.numbers[].msisdn | MSISDN stands for Mobile Station International Subscriber Directory Number. It is a unique identification number assigned to a mobile device in a mobile network. In simpler terms, MSISDN is the phone number associated with a mobile device. | string |
data.purchased_numbers_vonage.numbers[].type | Type refers to a blueprint or template that defines the properties and behaviors of objects. | string |
data.purchased_numbers_vonage.numbers[].voiceCallbackType | A voice call back type refers to the type of the call back. | string |
data.purchased_numbers_vonage.numbers[].voiceCallbackValue | A voice call back value refers to the type of the call back. | string |
data.purchased_numbers_vonage.numbers[].features | Features refers to specific qualities, characteristics or attributes that define or describe something. | string |
data.purchased_numbers_db[].bot_attached.bot_name | Bot name refers to the specific name for the bot with which been a bot identifies. | string |
data.purchased_numbers_db[].bot_attached.bot_id | Bot ID refers to the specific id for the bot with which been a bot identifies. | string |
data.purchased_numbers_db[]._id | Unique ID Call | string |
data.purchased_numbers_db[].country | Country code | string |
data.purchased_numbers_db[].msisdn | MSISDN stands for Mobile Station International Subscriber Directory Number. It is a unique identification number assigned to a mobile device in a mobile network. In simpler terms, MSISDN is the phone number associated with a mobile device. | string |
data.purchased_numbers_db[].cost | Cost refers to the amount of money or resources required to acquire, produce, or maintain something. | string |
data.purchased_numbers_db[].type | Type refers to a blueprint or template that defines the properties and behaviors of objects. | string |
data.purchased_numbers_db[].tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | string |
data.purchased_numbers_db[].features | Features refers to specific qualities, characteristics or attributes that define or describe something. | string |
data.purchased_numbers_db[].created_at | The created at defines the date the number is purchased. | string |
data.purchased_numbers_db[].updated_at | The updated at defines the date the number which was purchased got updated. | string |
data.purchased_numbers_db[].is_active | Is active defines where the number is active or inactive | string |
error | Contains information related to any error thrown by Call-Ai System | string |
Response Schema
A successful request returns the HTTP 200 OK status code and a JSON response body as detailed below:
Update ASR Configration
The "Update ASR Data" refers to an operation or API that allows you to modify or update the data used for Automatic Speech Recognition (ASR) systems. ASR technology is designed to convert spoken language into written text, and updating the ASR data involves making changes to the underlying language models, acoustic models, or other components used in the ASR system.
Endpoint URL
https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/googleASR/save
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 Param)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
asr.asr_engine | The name of the ASR engine used to process the speech data. | string | |
asr.number | The phone number associated with the speech data. | string | 1234567 |
asr.language_code | The language code used in the speech data. | string | en-US |
asr.model | The model used by the ASR engine to process the speech data. | string | English-US |
asr.tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | string | Tenant_12345 |
asr.language | The language used in the speech data. | string | Hindi(India) |
asr.displayed_model | The displayed name of the model used by the AS enginen to process the speech data. | string | Default |
mode | Mode represents whether the data being sent i.e. is a new record to be created or existing record to be updated. | string | Update |
Sample Request
POST https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/googleASR/save Content-Type: application/json Cache-Control: no-cache Authorization: Bearer ••••••••• Ocp-Apim-Subscription-Key: ••••••••• { "asr": { "asr_engine": "google", "number": "1234567890", "language_code": "en-US", "model": "English-US", "tenant_id": "tenant_12345", "language": "Hindi (India)", "displayed_model": "Default" }, "mode": "update" }
Response Variables
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:
Update TTS Configration
The "Update TTS (Text-to-Speech) Data" feature refers to the capability of modifying or updating the data used by a Text-to-Speech system. TTS technology converts written text into spoken words, allowing computer systems to generate human-like speech.
Endpoint URL
https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/tts/save
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 Param)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
tts.tts_engine | The name of the TTS engine used to process the speech data. | string | |
Tts.number | The phone number associated with the speech data. | string | 1234567 |
tts.language_code | the language code used in the speech data. | string | en-US |
tts.ssml_gender | SSML gender indicates the gender of the speaker of the TTS engine. | string | MALE |
Tts.voice | Voice defines the type of speech voice for the tts engine | string | “en-US-Standard-J" |
voice_style | Voice style refers to the specific manner, character, or tone in which speech or synthesized voices are delivered. | string | “Newscast-Formal” |
Tts.tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | string | “Tenant_12345” |
tt.pitch | Pitch represents the pitch for the TTS engine | string | 1 |
Tts.speed | Speed represents the speed for the TTS engine | string | 1 |
Tts.language | Language represents the language for the tts engine | string | Hindi (India) |
mode | Mode represents whether the data is being created or updated. | string | update |
Sample Request
POST https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/tts/save Content-Type: application/json Cache-Control: no-cache Authorization: Bearer ••••••••• Ocp-Apim-Subscription-Key: ••••••••• { "tts": { "tts_engine": "google", "number": "1234567890", "language_code": "en-US", "ssml_gender": "MALE", "voice": " en-US-Standard-J", "voice_style ": "Newscast-Formal", "tenant_id": "tenant_12345", "pitch": "1", "speed": "1", "language": "Hindi (India)" }, "mode": "update" }
Response Variables
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:
Attach A Number With DVA
The api allows you to attach a phone number to a virtual agent. Once the number is attached, the virtual agent can receive and respond to messages sent to that number.
Endpoint URL
https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/attach/numberBot
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 Param)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
number | The phone number associated with the bot | string | 12345678 |
tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | string | tenant_12345 |
bot_id | The unique identifier of the bot. | string | tefsdhfb2324xcnvx34534vdnj |
webhook | The URL of the webhook associated with the bot | string | "http://39.228.104.43:8896/webhooks/rest/webhook" |
Bot.bot_name | The name of the bot | string | abcd |
Bot.bot_id | The unique identifier of the bot | string | fsdjsdbfdndwjnejnwej34j3ruj |
Sample Request
POST https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/attach/numberBot Content-Type: application/json Cache-Control: no-cache Authorization: Bearer ••••••••• Ocp-Apim-Subscription-Key: ••••••••• { "number": "1234567890", "tenant_id": "tenant_12345", "webhook": "http://39.228.104.43:8896/webhooks/rest/webhook", "bot_name": "abcd", "bot_id": "fsdhfb2324xcnvx34534vdnj" }
Response Variables
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:
Deattach A Number With DVA
The api allows you to deattach a phone number to a virtual agent. Once the number is attached, the virtual agent will no longer receive and respond to messages sent to that number.
Endpoint URL
https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/deattach/numberBot
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 Param)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
number | The phone number associated with the bot | string | 12345678 |
tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance.string | string | tenant_12345 |
bot_id | The unique identifier of the bot | string | tefsdhfb2324xcnvx34534vdnj |
Sample Request
POST https://api.call-ai.com/basic-numbers/v1/basic/api/v1/number/deattach/numberBot Content-Type: application/json Cache-Control: no-cache Authorization: Bearer ••••••••• Ocp-Apim-Subscription-Key: ••••••••• { "number": "1234567890", "tenant_id": "tenant_12345", "bot_id": "sfsdjfds32534dvds5sdfh" }
Response Variables
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:
Assign Team
Endpoint URL
https://api.call-ai.com/basic-numbers/v1/basic/api/v1/teams/save
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 Param)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
number_attached | The phone number attached with the team. | string | 12345678 |
tenant_id | A tenant ID is used to associate each tenant's data with their specific account or instance. | string | tenant_12345 |
default_team | Default team defines whether the team default (true/false) | boolean | true |
display_name | The display name of the team. | testing | |
name | The name of the team. | string | abcd |
Sample Request
POST https://api.call-ai.com/basic-numbers/v1/basic/api/v1/teams/save Content-Type: application/json Cache-Control: no-cache Authorization: Bearer ••••••••• Ocp-Apim-Subscription-Key: ••••••••• { "tenant_id": "tenant_12345", "name": "tester_09722811", "display_name": "tester", "number_attached": "1234567890" }
Response Variables
Variable | Description | Data Type |
---|---|---|
Response | SUCCESS or Error Code | string |
Message | Call message on success or error | string |
data.response.created_at | Created at defines the date the team got created. | string |
data.response.team_id | The team id defines the unique id for the teams. | string |
data.response.tenant_id | A tenant ID is a unique identifier utilized to associate the data of each tenant with their specific account or instance. | string |
data.response.display_name | The display name for the teams. | string |
Data.response.name | The name for the teams. | string |
Data.response.number_attached | The number attached to the teams. | string |
Data.response.default_team | Default teams defines whether the team is default(true/false) | boolean |
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:
Unassign Team
Endpoint URL
https://api.call-ai.com/basic-numbers/v1/basic/api/v1/teams
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 Param)
It takes a JSON request body with the following notable parameter:
Variable | Description | Data Type | Example value |
---|---|---|---|
name | The name of the team. | string | Tester_0972811 |
Sample Request
DELETE https://api.call-ai.com/basic-numbers/v1/basic/api/v1/teams Content-Type: application/json Cache-Control: no-cache Authorization: Bearer ••••••••• Ocp-Apim-Subscription-Key: ••••••••• { "name": "tester_09722811" }
Response Variables
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: