All URIs are relative to https://api.callchimp.ai/v1
Method | HTTP request | Description |
---|---|---|
campaigns_addsuper | POST /campaigns/{Id}/add_super | Add Supervisors to Campaign by Id |
campaigns_delete | DELETE /campaigns/{Id} | Delete Campaign by Id |
campaigns_find | POST /campaigns/find | Search Campaign by Name or Id |
campaigns_get | GET /campaigns/{Id} | Get Campaign by Id |
campaigns_list | GET /campaigns | List campaigns |
campaigns_post | POST /campaigns | Create a Campaign |
campaigns_removesuper | POST /campaigns/{Id}/remove_super | Remove Supervisors from Campaign by Id |
campaigns_update | PATCH /campaigns/{Id} | Update Campaign by Id |
campaigns_uploadblast | PATCH /campaigns/{Id}/upload_blast_file | Upload audio file to Campaign by Id |
CampaignAddSuperResponse campaigns_addsuper(id, campaign_add_super_request)
Add Supervisors to Campaign by Id
- Api Key Authentication (x-api-key):
import callchimp
from callchimp.models.campaign_add_super_request import CampaignAddSuperRequest
from callchimp.models.campaign_add_super_response import CampaignAddSuperResponse
from callchimp.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.callchimp.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = callchimp.Configuration(
host = "https://api.callchimp.ai/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: x-api-key
configuration.api_key['x-api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with callchimp.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = callchimp.CampaignsApi(api_client)
id = 56 # int | Numeric Campaign id
campaign_add_super_request = {"supervisors":[34,35,36]} # CampaignAddSuperRequest |
try:
# Add Supervisors to Campaign by Id
api_response = api_instance.campaigns_addsuper(id, campaign_add_super_request)
print("The response of CampaignsApi->campaigns_addsuper:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CampaignsApi->campaigns_addsuper: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | Numeric Campaign id | |
campaign_add_super_request | CampaignAddSuperRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
401 | - | |
404 | - | |
405 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
campaigns_delete(id)
Delete Campaign by Id
- Api Key Authentication (x-api-key):
import callchimp
from callchimp.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.callchimp.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = callchimp.Configuration(
host = "https://api.callchimp.ai/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: x-api-key
configuration.api_key['x-api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with callchimp.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = callchimp.CampaignsApi(api_client)
id = 56 # int | Numeric id to get
try:
# Delete Campaign by Id
api_instance.campaigns_delete(id)
except Exception as e:
print("Exception when calling CampaignsApi->campaigns_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | Numeric id to get |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | - | |
404 | - | |
405 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[CampaignResponse] campaigns_find(campaign_find_request, page=page)
Search Campaign by Name or Id
- Api Key Authentication (x-api-key):
import callchimp
from callchimp.models.campaign_find_request import CampaignFindRequest
from callchimp.models.campaign_response import CampaignResponse
from callchimp.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.callchimp.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = callchimp.Configuration(
host = "https://api.callchimp.ai/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: x-api-key
configuration.api_key['x-api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with callchimp.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = callchimp.CampaignsApi(api_client)
campaign_find_request = {"query":"rickroll"} # CampaignFindRequest |
page = 56 # int | Page Number (optional)
try:
# Search Campaign by Name or Id
api_response = api_instance.campaigns_find(campaign_find_request, page=page)
print("The response of CampaignsApi->campaigns_find:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CampaignsApi->campaigns_find: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
campaign_find_request | CampaignFindRequest | ||
page | int | Page Number | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
401 | - | |
405 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CampaignResponse campaigns_get(id)
Get Campaign by Id
- Api Key Authentication (x-api-key):
import callchimp
from callchimp.models.campaign_response import CampaignResponse
from callchimp.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.callchimp.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = callchimp.Configuration(
host = "https://api.callchimp.ai/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: x-api-key
configuration.api_key['x-api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with callchimp.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = callchimp.CampaignsApi(api_client)
id = 56 # int | Numeric id to get
try:
# Get Campaign by Id
api_response = api_instance.campaigns_get(id)
print("The response of CampaignsApi->campaigns_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CampaignsApi->campaigns_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | Numeric id to get |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
404 | - | |
405 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CampaignListResponse campaigns_list(page=page)
List campaigns
- Api Key Authentication (x-api-key):
import callchimp
from callchimp.models.campaign_list_response import CampaignListResponse
from callchimp.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.callchimp.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = callchimp.Configuration(
host = "https://api.callchimp.ai/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: x-api-key
configuration.api_key['x-api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with callchimp.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = callchimp.CampaignsApi(api_client)
page = 56 # int | Page Number (optional)
try:
# List campaigns
api_response = api_instance.campaigns_list(page=page)
print("The response of CampaignsApi->campaigns_list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CampaignsApi->campaigns_list: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page | int | Page Number | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
401 | - | |
405 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CampaignResponse campaigns_post(campaign_request)
Create a Campaign
With callchimp.ai, you have access to 4 different types of campaigns: - Outbound Bulk: Campaign that play pre recorded audio to the subscribers / leads. One way broadcast campaign. - Outbound AI: GPT driven outbound AI campaign that runs according to the given script. Bidirectional campaign. - Inbound AI: GPT driven inbound AI campaign that runs according to the given script. Bidirectional campaign. - Transactional: Campaign that play dynamic text to audio to the subscribers / leads. One way campaign.
- Api Key Authentication (x-api-key):
import callchimp
from callchimp.models.campaign_request import CampaignRequest
from callchimp.models.campaign_response import CampaignResponse
from callchimp.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.callchimp.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = callchimp.Configuration(
host = "https://api.callchimp.ai/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: x-api-key
configuration.api_key['x-api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with callchimp.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = callchimp.CampaignsApi(api_client)
campaign_request = {"max_retry":2,"name":"Outbound Bulk Campaign by API","phone_number":4,"type":"blastout"} # CampaignRequest |
try:
# Create a Campaign
api_response = api_instance.campaigns_post(campaign_request)
print("The response of CampaignsApi->campaigns_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CampaignsApi->campaigns_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
campaign_request | CampaignRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
401 | - | |
405 | - | |
415 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CampaignRemoveSuperResponse campaigns_removesuper(id, campaign_remove_super_request)
Remove Supervisors from Campaign by Id
- Api Key Authentication (x-api-key):
import callchimp
from callchimp.models.campaign_remove_super_request import CampaignRemoveSuperRequest
from callchimp.models.campaign_remove_super_response import CampaignRemoveSuperResponse
from callchimp.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.callchimp.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = callchimp.Configuration(
host = "https://api.callchimp.ai/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: x-api-key
configuration.api_key['x-api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with callchimp.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = callchimp.CampaignsApi(api_client)
id = 56 # int | Numeric Campaign id
campaign_remove_super_request = {"supervisors":[35,36]} # CampaignRemoveSuperRequest |
try:
# Remove Supervisors from Campaign by Id
api_response = api_instance.campaigns_removesuper(id, campaign_remove_super_request)
print("The response of CampaignsApi->campaigns_removesuper:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CampaignsApi->campaigns_removesuper: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | Numeric Campaign id | |
campaign_remove_super_request | CampaignRemoveSuperRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
401 | - | |
404 | - | |
405 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CampaignResponse campaigns_update(id, campaign_update_request)
Update Campaign by Id
- Api Key Authentication (x-api-key):
import callchimp
from callchimp.models.campaign_response import CampaignResponse
from callchimp.models.campaign_update_request import CampaignUpdateRequest
from callchimp.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.callchimp.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = callchimp.Configuration(
host = "https://api.callchimp.ai/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: x-api-key
configuration.api_key['x-api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with callchimp.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = callchimp.CampaignsApi(api_client)
id = 56 # int | Numeric id to get
campaign_update_request = {"max_retry":1,"name":"Campaign by API renamed!"} # CampaignUpdateRequest |
try:
# Update Campaign by Id
api_response = api_instance.campaigns_update(id, campaign_update_request)
print("The response of CampaignsApi->campaigns_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CampaignsApi->campaigns_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | Numeric id to get | |
campaign_update_request | CampaignUpdateRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
401 | - | |
404 | - | |
405 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CampaignUploadAudioResponse campaigns_uploadblast(id, file)
Upload audio file to Campaign by Id
- Api Key Authentication (x-api-key):
import callchimp
from callchimp.models.campaign_upload_audio_response import CampaignUploadAudioResponse
from callchimp.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.callchimp.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = callchimp.Configuration(
host = "https://api.callchimp.ai/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: x-api-key
configuration.api_key['x-api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with callchimp.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = callchimp.CampaignsApi(api_client)
id = 56 # int | Numeric Campaign id
file = None # bytearray |
try:
# Upload audio file to Campaign by Id
api_response = api_instance.campaigns_uploadblast(id, file)
print("The response of CampaignsApi->campaigns_uploadblast:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CampaignsApi->campaigns_uploadblast: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | Numeric Campaign id | |
file | bytearray |
- Content-Type: multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
401 | - | |
404 | - | |
405 | - | |
415 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]