Python
from superu import SuperU
client = SuperU("YOUR_SUPERU_API_KEY")
response = client.calls.create_outbound_call(
assistant_id="ag_01HXR8FM5QYCVXAK4TYFJ4AEP0",
to="+14155552671",
from_="+14155550000",
campaign_id="demo_call",
customer_name="Ava",
customer_id="cust_123",
variable_values={
"key": "value"
}
)
print(response)curl --request POST \\
--url https://voip-middlware.superu.ai/campaign/outbound/create_call/superu \\
--header 'superU-Api-Key: YOUR_SUPERU_API_KEY' \\
--data '{
"assistant_id": "ag_01HXR8FM5QYCVXAK4TYFJ4AEP0",
"to": "+14155552671",
"from": "+14155550000",
"campaign_id": "demo_call",
"customer_name": "Ava",
"customer_id": "cust_123",
"variable_values": {
"key": "value"
}
}'{
"status": "success",
"call_uuid": "e8f87167-d4fd-44f2-b03a-24cb600f86f2",
"campaign_id": "demo_call",
"message": "Outbound call created"
}{
"status": "error",
"code": "BAD_REQUEST",
"message": "Request validation failed."
}{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Invalid or missing superU-Api-Key."
}{
"status": "error",
"code": "NOT_FOUND",
"message": "Resource not found."
}{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected server error occurred."
}{
"status": "error",
"code": "NOT_IMPLEMENTED",
"message": "This endpoint is not implemented for your workspace."
}Calls
Create outbound call
Creates an outbound campaign call for a configured assistant.
POST
/
campaign
/
outbound
/
create_call
/
superu
Python
from superu import SuperU
client = SuperU("YOUR_SUPERU_API_KEY")
response = client.calls.create_outbound_call(
assistant_id="ag_01HXR8FM5QYCVXAK4TYFJ4AEP0",
to="+14155552671",
from_="+14155550000",
campaign_id="demo_call",
customer_name="Ava",
customer_id="cust_123",
variable_values={
"key": "value"
}
)
print(response)curl --request POST \\
--url https://voip-middlware.superu.ai/campaign/outbound/create_call/superu \\
--header 'superU-Api-Key: YOUR_SUPERU_API_KEY' \\
--data '{
"assistant_id": "ag_01HXR8FM5QYCVXAK4TYFJ4AEP0",
"to": "+14155552671",
"from": "+14155550000",
"campaign_id": "demo_call",
"customer_name": "Ava",
"customer_id": "cust_123",
"variable_values": {
"key": "value"
}
}'{
"status": "success",
"call_uuid": "e8f87167-d4fd-44f2-b03a-24cb600f86f2",
"campaign_id": "demo_call",
"message": "Outbound call created"
}{
"status": "error",
"code": "BAD_REQUEST",
"message": "Request validation failed."
}{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Invalid or missing superU-Api-Key."
}{
"status": "error",
"code": "NOT_FOUND",
"message": "Resource not found."
}{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected server error occurred."
}{
"status": "error",
"code": "NOT_IMPLEMENTED",
"message": "This endpoint is not implemented for your workspace."
}Authorizations
Your SuperU API key.
Body
application/json
Request body for Create outbound call.
Outbound Call Create Request schema.
Assistant ID
Example:
"ag_01HXR8FM5QYCVXAK4TYFJ4AEP0"
Destination number
Example:
"+14155552671"
Optional source number
Example:
"+14155550000"
Campaign ID
Example:
"demo_call"
Customer display name
Example:
"Ava"
Customer identifier
Example:
"cust_123"
Key-value pairs for variables used in the agent script.
- Variable names must exactly match those defined in the script.
- These values replace the corresponding {{ variable_name }} placeholders in the script.
Example:
{ "key": "value" }
Response
Outbound call created

