Skip to content

Delete Contact

This endpoint soft-deletes an existing contact by ID and removes its project associations.

DELETE /v1/contacts/contacts/:id

Include your API key in the x-api-key header. See Authentication.

contacts:write
ParameterTypeRequiredDescription
idstringYesContact ID to delete.

This endpoint does not accept a request body.

Terminal window
curl -X DELETE "https://api.crewsum.com/v1/contacts/contacts/contact-jkl123mno4567890" \
-H "x-api-key: $CREWSUM_API_KEY"

On success, the API returns HTTP 200 OK. The response has no data field.

{
"message": "Successfully deleted contact contact-jkl123mno4567890"
}
  • This is a soft delete. The contact is marked isDeleted: true. It no longer appears in List Contacts, but Get Contact still returns it.
  • All of the contact’s project associations are also soft-deleted. No associations.removed webhook event is sent for them.
  • The contact’s supplier associations are not changed.
  • If no contact with this ID exists in your account, the API returns 404 and changes nothing. Deleting a contact in your account that is already deleted returns 200.
  • After the contact is deleted, Crewsum attempts to send the project-contacts.deleted webhook event. Because the associations are removed first, the contact in the payload has an empty associations array. A webhook failure does not change the response.
StatusMeaning
400{"message": "ContactID not supplied"}. The ID path segment is empty.
404{"message": "Contact <id> not found"}. No contact with this ID exists in your account. Nothing is changed.
500{"message": "Error deleting contact <id>"}. Crewsum could not delete the contact.

Authentication and scope failures are described in Errors.