Emails
Remove an Agent Mail address
Confirms a removal quote. The address stops receiving mail and is kept reserved (never reissued); a paid address’s unit leaves the Inbox plan.
Retries: safe without an Idempotency-Key: a confirmed previewId replays its stored receipt, so it never removes twice.
DELETE
/
v1
/
emails
/
addresses
/
{addressId}
Remove an Agent Mail address
curl --request DELETE \
--url https://api.lusor.ai/v1/emails/addresses/{addressId} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'DELETE',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({previewId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.lusor.ai/v1/emails/addresses/{addressId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/emails/addresses/{addressId}"
payload = { "previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"data": {
"status": "<string>",
"quantity": 123,
"paymentPending": false,
"address": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deleted": true
}
}
}{
"error": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Path Parameters
Query Parameters
Was this page helpful?
⌘I
Remove an Agent Mail address
curl --request DELETE \
--url https://api.lusor.ai/v1/emails/addresses/{addressId} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'DELETE',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({previewId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.lusor.ai/v1/emails/addresses/{addressId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/emails/addresses/{addressId}"
payload = { "previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"data": {
"status": "<string>",
"quantity": 123,
"paymentPending": false,
"address": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deleted": true
}
}
}{
"error": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
