Удалить ящик
curl --request DELETE \
--url https://taimly.net/api/mail/mailboxes/{address} \
--header 'Authorization: Bearer <token>'import requests
url = "https://taimly.net/api/mail/mailboxes/{address}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://taimly.net/api/mail/mailboxes/{address}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true
}{
"detail": "Invalid or missing API key"
}{
"detail": "Mailbox not found"
}Временные почты
Удалить ящик
Удаляет ящик вместе со всеми письмами. Письма на этот адрес после удаления отклоняются.
DELETE
/
api
/
mail
/
mailboxes
/
{address}
Удалить ящик
curl --request DELETE \
--url https://taimly.net/api/mail/mailboxes/{address} \
--header 'Authorization: Bearer <token>'import requests
url = "https://taimly.net/api/mail/mailboxes/{address}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://taimly.net/api/mail/mailboxes/{address}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true
}{
"detail": "Invalid or missing API key"
}{
"detail": "Mailbox not found"
}Authorizations
API-ключ. Передаётся в заголовке Authorization: Bearer <ваш_ключ>. Ключ выдаётся администратором Taimly.
Path Parameters
Адрес ящика. Регистр и +тег не важны: Anna+github@example.com — это ящик anna@example.com.
Example:
"anna.smith42@example.com"
Response
Удалено

