Закрепить ящик
curl --request PATCH \
--url https://taimly.net/api/mail/mailboxes/{address} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"pinned": true
}'import requests
url = "https://taimly.net/api/mail/mailboxes/{address}"
payload = { "pinned": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({pinned: true})
};
fetch('https://taimly.net/api/mail/mailboxes/{address}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3fa1c2d4e5b60718",
"address": "anna.smith42@example.com",
"domain": "example.com",
"created_at": "2026-10-26T12:00:00Z",
"pinned": true,
"messages": 1,
"unread": 0,
"last_message_at": "2026-10-26T12:03:41Z"
}{
"detail": "Expected {\"pinned\": true|false}"
}{
"detail": "Invalid or missing API key"
}{
"detail": "Mailbox not found"
}Временные почты
Закрепить ящик
Показывать ли ящик в списке на taimly.net. Ящики, созданные через API, по умолчанию не закреплены.
PATCH
/
api
/
mail
/
mailboxes
/
{address}
Закрепить ящик
curl --request PATCH \
--url https://taimly.net/api/mail/mailboxes/{address} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"pinned": true
}'import requests
url = "https://taimly.net/api/mail/mailboxes/{address}"
payload = { "pinned": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({pinned: true})
};
fetch('https://taimly.net/api/mail/mailboxes/{address}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3fa1c2d4e5b60718",
"address": "anna.smith42@example.com",
"domain": "example.com",
"created_at": "2026-10-26T12:00:00Z",
"pinned": true,
"messages": 1,
"unread": 0,
"last_message_at": "2026-10-26T12:03:41Z"
}{
"detail": "Expected {\"pinned\": true|false}"
}{
"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"
Body
application/json
Показывать ящик на сайте
Response
Ящик
Идентификатор ящика
Адрес ящика
Домен ящика
Когда создан (UTC)
Показывается ли в списке на сайте
Всего писем
Непрочитанных писем
Когда пришло последнее письмо (UTC)

