Queue an outbound agent call on a campaign (not generally available)
curl --request POST \ --url https://api.sipstack.com/api/v2/aura/calls \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "campaignId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "to": "+14165550100", "agentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "language": "en", "externalRef": "example" }'import requests
url = "https://api.sipstack.com/api/v2/aura/calls"
payload = { "campaignId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "to": "+14165550100", "agentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "language": "en", "externalRef": "example"}headers = { "x-api-key": "<x-api-key>", "Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())const url = 'https://api.sipstack.com/api/v2/aura/calls';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"campaignId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","to":"+14165550100","agentId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","language":"en","externalRef":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}import axios from 'axios';
const options = { method: 'POST', url: 'https://api.sipstack.com/api/v2/aura/calls', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, data: { campaignId: '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', to: '+14165550100', agentId: '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', name: 'example', language: 'en', externalRef: 'example' }};
try { const { data } = await axios.request(options); console.log(data);} catch (error) { console.error(error);}Queues one outbound Aura AI call on one of your campaigns. This endpoint does not dial: the number is added to the campaign as a contact, checked against your do-not-call list and consent records, and the campaign places the call inside its calling window, with its purpose, voice, caller ID and retry rules.
:::caution[Not generally available]
This endpoint is not enabled for API access and returns 403
(“outbound Aura calling is not enabled for API access”). It is documented
for completeness; the read endpoints above are the supported surface
today. Contact support if outbound agent calling is on your roadmap.
:::
When enabled, it requires the aura:write scope and a campaignId on
your organization, and returns 202 with status queued (or
refused with a refusedReason, for example consent_missing or
internal_dnc). A number already on the campaign returns 200 with the
existing contact.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
An outbound Aura campaign on your organization (draft, scheduled, running or paused). The campaign sets the purpose, voice, caller ID, calling window and retries.
US or Canadian destination phone number (E.164 or 10 digits). Emergency numbers are refused.
Example
+14165550100Optional. When sent, it must equal the campaign’s voice agent.
Optional contact name (≤ 120 characters).
Optional call language. Unset, Quebec numbers are called in French.
Optional reference from your system (≤ 120 characters).
Responses
Section titled “ Responses ”The number is already on the campaign; the existing contact is returned (duplicate true).
Contact queued (or refused by the pre-check) on the campaign.
object
object
Example
{ "data": { "status": "queued", "refusedReason": "consent_missing" }}Missing campaignId, an invalid to, or an agentId that is not the campaign’s agent.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}Missing or invalid API key.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}Outbound Aura calling is not enabled for API access, or the key is missing the aura:write scope.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}The campaign is not one of yours.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}The campaign is completed, cancelled or suspended.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}