Skip to main content
POST
https://prod-contactswing-fastapi-962560522883.us-central1.run.app
/
v2
/
_campaign
/
create_with_touchpoint
Create Campaign with Call Touchpoint
curl --request POST \
  --url https://prod-contactswing-fastapi-962560522883.us-central1.run.app/v2/_campaign/create_with_touchpoint \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "<string>",
  "business_goal": "<string>",
  "touchpoint": {
    "name": "<string>",
    "type": "<string>",
    "status": "<string>",
    "start_at": "<string>",
    "assistant_id": 123,
    "additional_settings": {
      "execution_days": [
        "<string>"
      ],
      "start_hour": 123,
      "end_hour": 123,
      "time_zone": "<string>",
      "from_numbers": [
        "<string>"
      ]
    }
  },
  "customer_details": [
    {
      "id": "<string>",
      "to_number": "<string>"
    }
  ],
  "from_number": "<string>"
}
'
{
  "ctx_id": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "status": "<string>"
  }
}

Authorizations

Authorization
string
required
Enter your ContactSwing JWT Bearer token.

Request Body

name
string
required
Campaign display name TalentCare Interview
type
string
Campaign type.
business_goal
string
The business goal of the campaign.
touchpoint
object
required
The touchpoint object.
name
string
required
The name of the touchpoint.
type
string
required
The type of the touchpoint. e.g. CALL.
status
string
required
The status of the touchpoint. e.g. scheduled.
start_at
string
required
ISO 8601 scheduled date for the touchpoint.
assistant_id
integer
required
The ID of the assistant to be used.
additional_settings
object
required
Additional settings for the touchpoint.
execution_days
string[]
required
Array of days when the campaign will be executed. e.g. ["mon", "tue"]
start_hour
integer
required
The start hour for the campaign execution.
end_hour
integer
required
The end hour for the campaign execution.
time_zone
string
required
The timezone for the campaign execution. e.g. Asia/Kolkata.
from_numbers
string[]
required
The numbers from which the calls will be made.
customer_details
array
required
An array of customer details objects.
id
string
required
The customer’s ID.
to_number
string
required
The customer’s phone number.
from_number
string
required
The number from which the call will be made.

Response

201 Created - Campaign created successfully
ctx_id
string
Request context ID
data
object
id
string
Campaign ID
name
string
Campaign name
status
string
Campaign status
400 Bad Request - Invalid input