Path Parameters
The unique account identifier.
Response
The deleted account’s identifier.
Always true if deletion was successful.
ISO 8601 timestamp of deletion.
curl -X DELETE https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e \
-H "Authorization: Bearer YOUR_API_KEY"
{
"accountId": "acc_1a2b3c4d5e",
"deleted": true,
"deletedAt": "2024-04-21T19:50:00Z"
}
This action is permanent! Deleted accounts cannot be recovered. All associated data, posts, and analytics will be permanently removed.
Error Responses
{
"error": {
"code": "unauthenticated",
"message": "Invalid or missing API key"
}
}
{
"error": {
"code": "not_found",
"message": "Account acc_1a2b3c4d5e not found"
}
}
{
"error": {
"code": "internal",
"message": "An unexpected error occurred"
}
}