/v1/accounts/{accountId}/campaigns/{campaignId}/numbersDeletes one or more numbers of a campaign, so they are not called.
Numbers are identified by the id of the campaign number objects, which is not the phone number itself: list the numbers first to get their IDs.
Only numbers that have not been called can be deleted, and the rules depend on the state of the campaign:
NotContacted status are deleted permanently.Dynamic campaigns): numbers with NotContacted or RetryPending status change to Deleted status. Pending retries are canceled.Numbers with any other status are skipped.
ID of your SIP Caller account. See Account ID.
ID of the campaign.
A JSON array with the IDs of the numbers to delete. The IDs can't be repeated.
Returns an array with the IDs of the deleted numbers. If no number was deleted, returns 404 Not Found.
/v1/accounts/ACCOUNT_ID/campaigns/CAMPAIGN_ID/numbers
curl -X DELETE 'https://api.sipcaller.com/v1/accounts/ACCOUNT_ID/campaigns/CAMPAIGN_ID/numbers' \
-H 'Authorization: Bearer API_KEY_TOKEN' \
-H 'Content-Type: application/json' \
-d '[
1048201,
1048202
]'Response
200 OK
[
1048201,
1048202
]