Python
from superu import SuperU
client = SuperU("YOUR_SUPERU_API_KEY")
payload = {
"workflow_name": "My Outbound Campaign",
"assistantId": "b64244f5-019c-47b6-bedd-cb359c0731a5",
"batchSize": 5,
"audienceId": "f750d6e9-448d-4198-be9a-ed142460c329",
"from_phone_number": "+14155550100",
"dateTime": "2026-04-24T08:28:00"
}
response = client.campaigns.create(**payload)
print(response)curl --request POST \\
--url https://voip-middlware.superu.ai/campaign/outbound/batch_create \\
--header 'superU-Api-Key: YOUR_SUPERU_API_KEY' \\
--data '{
"workflow_name": "My Outbound Campaign",
"assistantId": "b64244f5-019c-47b6-bedd-cb359c0731a5",
"batchSize": 5,
"audienceId": "f750d6e9-448d-4198-be9a-ed142460c329",
"from_phone_number": "+14155550100",
"dateTime": "2026-04-24T08:28:00"
}'{
"name": "My Outbound Campaign",
"active": true,
"campaign": {
"campaign_id": "f1e2d3c4-b5a6-7890-abcd-ef1234567890",
"message": "Campaign created successfully",
"status": "scheduled"
}
}{
"status": "error",
"code": "BAD_REQUEST",
"message": "Request validation failed."
}{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Invalid or missing superU-Api-Key."
}{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected server error occurred."
}Campaigns
Create outbound campaign
Creates an outbound campaign with automated call scheduling. Handles workflow setup, contact loading, and job scheduling in a single request.
Provide contacts using either audienceId (existing audience) or csvData (inline contact list) — not both. If csvData is provided, a new audience is automatically created from it.
Optionally schedule the campaign for a future time using dateTime. If omitted, the campaign starts immediately.
POST
/
campaign
/
outbound
/
batch_create
Python
from superu import SuperU
client = SuperU("YOUR_SUPERU_API_KEY")
payload = {
"workflow_name": "My Outbound Campaign",
"assistantId": "b64244f5-019c-47b6-bedd-cb359c0731a5",
"batchSize": 5,
"audienceId": "f750d6e9-448d-4198-be9a-ed142460c329",
"from_phone_number": "+14155550100",
"dateTime": "2026-04-24T08:28:00"
}
response = client.campaigns.create(**payload)
print(response)curl --request POST \\
--url https://voip-middlware.superu.ai/campaign/outbound/batch_create \\
--header 'superU-Api-Key: YOUR_SUPERU_API_KEY' \\
--data '{
"workflow_name": "My Outbound Campaign",
"assistantId": "b64244f5-019c-47b6-bedd-cb359c0731a5",
"batchSize": 5,
"audienceId": "f750d6e9-448d-4198-be9a-ed142460c329",
"from_phone_number": "+14155550100",
"dateTime": "2026-04-24T08:28:00"
}'{
"name": "My Outbound Campaign",
"active": true,
"campaign": {
"campaign_id": "f1e2d3c4-b5a6-7890-abcd-ef1234567890",
"message": "Campaign created successfully",
"status": "scheduled"
}
}{
"status": "error",
"code": "BAD_REQUEST",
"message": "Request validation failed."
}{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Invalid or missing superU-Api-Key."
}{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected server error occurred."
}Body
application/json
Request body for creating an outbound campaign.

