Skip to main content
DELETE
/
v1
/
accounts
/
{accountId}
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"
}

Path Parameters

accountId
string
required
The unique account identifier.

Response

accountId
string
The deleted account’s identifier.
deleted
boolean
Always true if deletion was successful.
deletedAt
string
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

Unauthorized
{
  "error": {
    "code": "unauthenticated",
    "message": "Invalid or missing API key"
  }
}
Account Not Found
{
  "error": {
    "code": "not_found",
    "message": "Account acc_1a2b3c4d5e not found"
  }
}
Server Error
{
  "error": {
    "code": "internal",
    "message": "An unexpected error occurred"
  }
}