cURL
curl --request DELETE \ --url https://api.sendpost.io/api/v1/account/subaccount/{subaccount_id} \ --header 'X-Account-ApiKey: <api-key>'
{ "id": 12, "message": "Sub-Account (FoxHole V1) has been deleted successfully." }
Deletes a specific sub-account by its ID.
This api key can be used for all account level operations
The ID of the sub-account to delete.
12
Sub-account successfully deleted.
The response is of type object.
object