Skip to main content

Agency - Delete Client Account

API to remove a client account from your agency or white label account

Updated over a week ago

​Please see this article for information on API authorization, testing endpoints, and how obtain your API key.

If you would like to programmatically delete a client account from your agency or white label account, you can leverage our agency API client Delete endpoint to achieve this.

The call to this endpoint must be an HTTP DELETE to: https://api.leadpost.com/api/v1.0/agency/clients/{accountId}

A screenshot of a computer

AI-generated content may be incorrect.


If you need to retrieve a list of client accounts via API to determine a client's accountId, please see our Agency - List Clients API.

In addition to the required accountId of the client to delete, there is an optional Boolean parameter, named forceCampaignDeactivation, which defaults to false.

If the client accountId in the request has active campaigns and forceCampaignDeactivation is not passed in or is set to false, the API call will fail with 400 response with an error message indicating as such.


On success, this API call will return a 204, No Content response.

Did this answer your question?