Skip to content
TriedDocs
Contacts

Delete contact

Delete a contact and unlink its calls.

DELETEhttps://api.tried.com.au/delete-contact/{id}

Deletes a contact. Calls linked to it are kept, with their contact_id cleared. A new call with the same number creates a fresh contact.

Request#

Field Type Required Description
id string Yes Path parameter. The contact_id.

Example request#

curl -X DELETE https://api.tried.com.au/delete-contact/contact_4b8e2f1a9c3d5e7f6a0b2c4d \
  -H "Authorization: Bearer $TRIED_API_KEY"
const id = "contact_4b8e2f1a9c3d5e7f6a0b2c4d";
await fetch(`https://api.tried.com.au/delete-contact/${id}`, {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
import os, requests

contact_id = "contact_4b8e2f1a9c3d5e7f6a0b2c4d"
requests.delete(
    f"https://api.tried.com.au/delete-contact/{contact_id}",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)

Response#

204 No Content with an empty body.

Errors#

Status When
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request, or the caller has the read-only member role. This route needs the calls scope.
404 Contact <id> not found.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.