Wipple CPaaS
Menu
REST API / Delete a call

Delete a call

DELETEhttps://{API_ENDPOINT}/v1/Accounts/{AccountSid}/Calls/{CallSid}

Authentication

  • Authorization header (bearer token, required) — Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

Path parameters

  • AccountSidstringrequired
  • CallSidstringrequired

Response

204

call successfully deleted

Errors

404 Not Found Error

call not found

  • any

422 Unprocessable Entity Error

unprocessable entity

  • msgstringrequired

500 Internal Server Error

system error

  • msgstringrequired

Examples

cURL

curl -X DELETE "https://{API_ENDPOINT}/v1/Accounts/AccountSid/Calls/CallSid" \
  -H "Authorization: Bearer <token>"

Python

import requests

url = "https://{API_ENDPOINT}/v1/Accounts/AccountSid/Calls/CallSid"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.json())

JavaScript

const url = 'https://{API_ENDPOINT}/v1/Accounts/AccountSid/Calls/CallSid';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}