curl -X DELETE https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch('https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();
import requests
response = requests.delete(
'https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
print(response.json())
{
"accountId": "acc_1a2b3c4d5e",
"deleted": true,
"deletedAt": "2024-04-21T19:50:00Z"
}
Accounts
Delete Account
Permanently delete an account
DELETE
/
v1
/
accounts
/
{accountId}
curl -X DELETE https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch('https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();
import requests
response = requests.delete(
'https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
print(response.json())
{
"accountId": "acc_1a2b3c4d5e",
"deleted": true,
"deletedAt": "2024-04-21T19:50:00Z"
}
Path Parameters
string
required
The unique account identifier.
Response
string
The deleted account’s identifier.
boolean
Always
true if deletion was successful.string
ISO 8601 timestamp of deletion.
curl -X DELETE https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch('https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();
import requests
response = requests.delete(
'https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
print(response.json())
{
"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"
}
}
⌘I