Skip to main content

delete and delete_phone_number

  • delete withdraws contacts by adapter contact ID. Only IDs of your account count: unknown IDs and IDs of other accounts change nothing. Contacts of closed campaigns are skipped.
  • delete_phone_number withdraws a number from all open campaigns of your account, including a campaign that another request is still creating at that moment. Numbers are compared by their last ten digits.
  • A contact that is on a call at that moment finishes the call and gets no further attempts.
  • Both operations respond with an echo of what you sent: {"type":"deleted", "data": <your data as is>} (one space after the colon — as in V2).
In the cabinet, a withdrawn contact gets the state Suppressed with the reason Withdrawn at the client’s request — see Contacts and withdrawals.
The cheapest way to check sign-in after setting up an account is {"user":"…","pass":"…","type":"delete","data":[1]}. The adapter will respond with the echo {"type":"deleted", "data": [1]} and withdraw nothing.