Emails
Preview removing an Agent Mail address
Quotes removing this address: a paid address’s unused rest of the
period is credited to the account balance; removing an included
one changes nothing on the bill (free: true). Nothing changes
yet. The quote expires after 10 minutes; confirm it with
DELETE /v1/emails/addresses/{addressId}.
Retries: safe without an Idempotency-Key: a preview only quotes, it changes nothing.
POST
/
v1
/
emails
/
addresses
/
{addressId}
/
remove-preview
Preview removing an Agent Mail address
curl --request POST \
--url https://api.lusor.ai/v1/emails/addresses/{addressId}/remove-preview \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.lusor.ai/v1/emails/addresses/{addressId}/remove-preview', 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}/remove-preview"
payload = {}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"currency": "usd",
"dueToday": 123,
"creditToday": 123,
"totalAtRenewal": 123,
"expiresAt": 123,
"subtotal": 123,
"tax": 123,
"discountToday": 123,
"discountAtRenewal": 123,
"subtotalAtRenewal": 123,
"taxAtRenewal": 123,
"free": 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
Body
application/json
The body is of type object.
Was this page helpful?
⌘I
Preview removing an Agent Mail address
curl --request POST \
--url https://api.lusor.ai/v1/emails/addresses/{addressId}/remove-preview \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.lusor.ai/v1/emails/addresses/{addressId}/remove-preview', 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}/remove-preview"
payload = {}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"currency": "usd",
"dueToday": 123,
"creditToday": 123,
"totalAtRenewal": 123,
"expiresAt": 123,
"subtotal": 123,
"tax": 123,
"discountToday": 123,
"discountAtRenewal": 123,
"subtotalAtRenewal": 123,
"taxAtRenewal": 123,
"free": 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>"
}
