Skip to content

Delete Client

This endpoint soft-deletes an existing client by ID.

DELETE /v1/clients/clients/:id

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

clients:write
ParameterTypeRequiredDescription
idstringYesClient ID to delete.

This endpoint does not accept a request body.

Terminal window
curl -X DELETE "https://api.crewsum.com/v1/clients/clients/client-ghi123jkl4567890" \
-H "x-api-key: $CREWSUM_API_KEY"

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

{
"message": "Successfully deleted client-ghi123jkl4567890"
}
  • This is a soft delete. The client is marked isDeleted: true. It no longer appears in List Clients, but Get Client still returns it.
  • Only the client record changes. Its projects, contacts, and end customers are not deleted. Their responses show the client as deleted (clientDeleted: true).
  • The API does not check that the client exists. An unknown ID returns 200 with the success message, and no webhook is sent. Deleting a client that is already deleted also returns 200.
  • After the client is deleted, Crewsum attempts to send the clients.deleted webhook event. A webhook failure does not change the response.
StatusMeaning
400{"message": "ClientID not supplied"}. The ID path segment is empty.
500{"message": "Error deleting <id>"}. Crewsum could not delete the client.

Authentication and scope failures are described in Errors.