{"openapi":"3.1.0","info":{"title":"Tallker Send API","version":"1.0.0","description":"Серверная отправка писем и управление проектом. Один API-ключ связан с одним проектом."},"servers":[{"url":"https://send.tallker.com/api/v1"}],"paths":{"/email/validate":{"post":{"summary":"Проверка адреса","description":"Нужно разрешение contacts:read.","operationId":"post__email_validate","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"],"description":"Проверяет формат адреса и почтовые DNS-записи без отправки письма. Не подтверждает существование ящика. Не более 10 проверок в минуту на организацию."}}}}}},"/project":{"get":{"summary":"Текущий проект","description":"Доступ определяется правами ключа.","operationId":"get__project","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/domains":{"get":{"summary":"Домены","description":"Нужно разрешение domains:read.","operationId":"get__domains","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}},"post":{"summary":"Домены","description":"Нужно разрешение domains:write.","operationId":"post__domains","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","maxLength":253,"description":"Только имя домена, без https:// и пути."}},"required":["domain"]}}}}}},"/domains/{id}/verify":{"post":{"summary":"Домены","description":"Доступ определяется правами ключа.","operationId":"post__domains_id_verify","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/senders":{"post":{"summary":"Отправители","description":"Нужно разрешение domains:write.","operationId":"post__senders","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","format":"email"}},"required":["address"],"description":"Адрес на домене, подтверждённом за последние 24 часа."}}}}},"get":{"summary":"Отправители","description":"Нужно разрешение domains:read.","operationId":"get__senders","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/messages":{"post":{"summary":"Письма","description":"Нужно разрешение messages:send.","operationId":"post__messages","security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}},"example":{"data":{"id":"00000000-0000-4000-8000-000000000001","state":"queued","replayed":false}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}},"example":{"data":{"id":"00000000-0000-4000-8000-000000000001","state":"queued","replayed":false}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}},"example":{"data":{"id":"00000000-0000-4000-8000-000000000001","state":"queued","replayed":false}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}}},"get":{"summary":"Письма","description":"Нужно разрешение messages:read.","operationId":"get__messages","security":[{"bearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":30}},{"name":"before","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"nextCursor из предыдущего ответа. Принадлежит текущему проекту."}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}},"example":{"data":[],"nextCursor":null}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}},"example":{"data":[],"nextCursor":null}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}},"example":{"data":[],"nextCursor":null}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/messages/{id}":{"get":{"summary":"Письма","description":"Нужно разрешение messages:read.","operationId":"get__messages_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/messages/{id}/cancel":{"post":{"summary":"Письма","description":"Нужно разрешение messages:send.","operationId":"post__messages_id_cancel","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/statistics":{"get":{"summary":"Статистика","description":"Нужно разрешение messages:read.","operationId":"get__statistics","security":[{"bearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":90,"default":7}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/contacts":{"post":{"summary":"Контакты","description":"Нужно разрешение contacts:write.","operationId":"post__contacts","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"name":{"type":"string","maxLength":200},"consentAt":{"type":"string","format":"date-time"},"consentSource":{"type":"string","maxLength":1000}},"required":["email"],"description":"Согласие указывайте только при наличии подтверждения. Дата не может быть в будущем. Повтор адреса обновляет имя, но не согласие."}}}}},"get":{"summary":"Контакты","description":"Нужно разрешение contacts:read.","operationId":"get__contacts","security":[{"bearer":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"nextCursor из предыдущего ответа. До 100 контактов за запрос."}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}},"example":{"data":[],"nextCursor":null}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}},"example":{"data":[],"nextCursor":null}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}},"example":{"data":[],"nextCursor":null}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/suppressions":{"post":{"summary":"Исключения","description":"Нужно разрешение contacts:write.","operationId":"post__suppressions","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"],"description":"Добавляет адрес в исключения проекта."}}}}},"get":{"summary":"Исключения","description":"Нужно разрешение contacts:read.","operationId":"get__suppressions","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/keys":{"post":{"summary":"API-ключи","description":"Нужно разрешение keys:write.","operationId":"post__keys","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","maxLength":100},"scopes":{"type":"array","items":{"type":"string","enum":["messages:send","messages:read","domains:read","domains:write","contacts:read","contacts:write","keys:write","templates:read","templates:write","campaigns:read","campaigns:write","automations:write","webhooks:write","projects:write","team:write","finance:read","finance:write","support:write","audit:read"]},"minItems":1}},"required":["label","scopes"],"description":"Разрешения не могут превышать права создателя. Секрет показывается один раз; срок ключа — 90 дней."}}}}},"get":{"summary":"API-ключи","description":"Нужно разрешение keys:write.","operationId":"get__keys","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/smtp-keys":{"post":{"summary":"SMTP-пароли","description":"Нужно разрешение keys:write.","operationId":"post__smtp_keys","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","maxLength":100}},"required":["label"],"description":"Создаёт отдельный SMTP-пароль проекта на 90 дней."}}}}}},"/keys/{id}":{"delete":{"summary":"API-ключи","description":"Нужно разрешение keys:write.","operationId":"delete__keys_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/template-gallery":{"get":{"summary":"Галерея шаблонов","description":"Нужно разрешение templates:read.","operationId":"get__template_gallery","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/templates":{"get":{"summary":"Шаблоны","description":"Нужно разрешение templates:read.","operationId":"get__templates","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}},"post":{"summary":"Шаблоны","description":"Нужно разрешение templates:write.","operationId":"post__templates","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}},"example":{"data":{"id":"00000000-0000-4000-8000-000000000001","name":"Приветствие","subject":"Спасибо за регистрацию","version":1}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}},"example":{"data":{"id":"00000000-0000-4000-8000-000000000001","name":"Приветствие","subject":"Спасибо за регистрацию","version":1}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}},"example":{"data":{"id":"00000000-0000-4000-8000-000000000001","name":"Приветствие","subject":"Спасибо за регистрацию","version":1}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"subject":{"type":"string","maxLength":300},"preheader":{"type":"string","maxLength":250},"mode":{"type":"string","enum":["blocks","html"],"default":"blocks"},"blocks":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["heading","text","image","logo","button","divider","spacer","columns","product","promo","social"]},"text":{"type":"string","maxLength":10000},"title":{"type":"string","maxLength":250},"url":{"type":"string","format":"uri","pattern":"^https://","description":"Обязателен для изображения, логотипа, кнопки и ссылки на социальную сеть."},"alt":{"type":"string","maxLength":1000},"second":{"type":"string","maxLength":10000,"description":"Текст второй колонки."},"label":{"type":"string","maxLength":1000}},"required":["type"]},"maxItems":80},"html":{"type":"string","maxLength":1000000},"text":{"type":"string","maxLength":500000,"description":"Обязательная текстовая версия в режиме HTML."}},"required":["name","subject"],"description":"В режиме blocks передайте блоки, содержащие текст. В режиме html передайте html и непустую текстовую версию text."}}}}}},"/templates/{id}":{"get":{"summary":"Шаблоны","description":"Нужно разрешение templates:read.","operationId":"get__templates_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}},"put":{"summary":"Шаблоны","description":"Нужно разрешение templates:write.","operationId":"put__templates_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"subject":{"type":"string","maxLength":300},"preheader":{"type":"string","maxLength":250},"mode":{"type":"string","enum":["blocks","html"],"default":"blocks"},"blocks":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["heading","text","image","logo","button","divider","spacer","columns","product","promo","social"]},"text":{"type":"string","maxLength":10000},"title":{"type":"string","maxLength":250},"url":{"type":"string","format":"uri","pattern":"^https://","description":"Обязателен для изображения, логотипа, кнопки и ссылки на социальную сеть."},"alt":{"type":"string","maxLength":1000},"second":{"type":"string","maxLength":10000,"description":"Текст второй колонки."},"label":{"type":"string","maxLength":1000}},"required":["type"]},"maxItems":80},"html":{"type":"string","maxLength":1000000},"text":{"type":"string","maxLength":500000,"description":"Обязательная текстовая версия в режиме HTML."},"version":{"type":"integer","minimum":1,"maximum":2147483647}},"required":["name","subject","version"],"description":"Передайте текущую версию шаблона. При одновременном редактировании сервер вернёт 409."}}}}}},"/templates/preview":{"post":{"summary":"Шаблоны","description":"Нужно разрешение templates:read.","operationId":"post__templates_preview","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string","maxLength":1000000},"text":{"type":"string","maxLength":500000},"blocks":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["heading","text","image","logo","button","divider","spacer","columns","product","promo","social"]},"text":{"type":"string","maxLength":10000},"title":{"type":"string","maxLength":250},"url":{"type":"string","format":"uri","pattern":"^https://","description":"Обязателен для изображения, логотипа, кнопки и ссылки на социальную сеть."},"alt":{"type":"string","maxLength":1000},"second":{"type":"string","maxLength":10000,"description":"Текст второй колонки."},"label":{"type":"string","maxLength":1000}},"required":["type"]},"maxItems":80},"preheader":{"type":"string","maxLength":250}},"description":"Передайте HTML или массив блоков. Возвращает безопасный HTML и текст без отправки письма."}}}}}},"/templates/{id}/versions":{"get":{"summary":"Шаблоны","description":"Нужно разрешение templates:read.","operationId":"get__templates_id_versions","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/templates/{id}/test":{"post":{"summary":"Шаблоны","description":"Нужно разрешение messages:send.","operationId":"post__templates_id_test","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"email"},"to":{"type":"string","format":"email"},"permission":{"const":true}},"required":["from","to","permission"],"description":"Только на адрес, владелец которого разрешил тестовое письмо. Нужен Idempotency-Key."}}}}}},"/contacts/import":{"post":{"summary":"Контакты","description":"Нужно разрешение contacts:write.","operationId":"post__contacts_import","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}},"example":{"data":{"imported":2,"invalid":1,"duplicates":1,"consentGranted":false}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}},"example":{"data":{"imported":2,"invalid":1,"duplicates":1,"consentGranted":false}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}},"example":{"data":{"imported":2,"invalid":1,"duplicates":1,"consentGranted":false}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string","enum":["csv","xlsx"]},"content":{"type":"string","contentEncoding":"base64","maxLength":4194304}},"required":["format","content"],"description":"Файл до 3 МБ, до 5000 контактов. Первая строка: email, name, tags. Теги разделяются |. Другие столбцы сохраняются как поля. Импорт не даёт согласия на рекламу."}}}}}},"/contacts/export":{"get":{"summary":"Контакты","description":"Нужно разрешение contacts:read.","operationId":"get__contacts_export","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/contacts/search":{"get":{"summary":"Контакты","description":"Нужно разрешение contacts:read.","operationId":"get__contacts_search","security":[{"bearer":[]}],"parameters":[{"name":"before","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"nextCursor из предыдущего ответа."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":200}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200},"description":"Поиск по имени или почте."},{"name":"tag","in":"query","required":false,"schema":{"type":"string","maxLength":50},"description":"Точное совпадение тега."}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/contacts/{id}":{"patch":{"summary":"Контакты","description":"Нужно разрешение contacts:write.","operationId":"patch__contacts_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"tags":{"type":"array","items":{"type":"string","maxLength":50},"maxItems":30},"fields":{"type":"object","description":"Дополнительные поля. Общий размер JSON — до 10 000 знаков."}},"description":"Заменяет имя, теги и поля: передавайте все значения, которые нужно сохранить."}}}}},"delete":{"summary":"Контакты","description":"Нужно разрешение contacts:write.","operationId":"delete__contacts_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}},"get":{"summary":"Контакты","description":"Нужно разрешение contacts:read.","operationId":"get__contacts_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/contacts/{id}/consent":{"post":{"summary":"Контакты","description":"Нужно разрешение contacts:write.","operationId":"post__contacts_id_consent","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","maxLength":1000,"minLength":1},"date":{"type":"string","format":"date-time"},"confirmed":{"const":true}},"required":["source","date","confirmed"],"description":"Сохраняет основание согласия. Не снимает отписку или исключение."}}}}}},"/contacts/{id}/opt-in":{"post":{"summary":"Контакты","description":"Нужно разрешение contacts:write.","operationId":"post__contacts_id_opt_in","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestedByRecipient":{"const":true}},"required":["requestedByRecipient"],"description":"Отправляет подтверждение только по запросу владельца адреса и после разрешения отправки для организации."}}}}}},"/contacts/{id}/history":{"get":{"summary":"Контакты","description":"Нужно разрешение contacts:read.","operationId":"get__contacts_id_history","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/campaigns":{"get":{"summary":"Рассылки","description":"Нужно разрешение campaigns:read.","operationId":"get__campaigns","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}},"post":{"summary":"Рассылки","description":"Нужно разрешение campaigns:write.","operationId":"post__campaigns","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"sender":{"type":"string","format":"email"},"templateId":{"type":"string","format":"uuid"},"timezone":{"type":"string","default":"Europe/Moscow"},"tag":{"type":"string","maxLength":50},"segmentId":{"type":"string","format":"uuid"},"subjectB":{"type":"string","maxLength":300,"description":"Вторая тема для равного распределения A/B."},"repeatDays":{"type":"integer","minimum":1,"maximum":365,"description":"Не передавайте для разовой рассылки."},"tracking":{"type":"boolean","default":false}},"required":["name","sender","templateId"],"description":"Сохраняет снимок шаблона. Создание не запускает отправку."}}}}}},"/campaigns/{id}":{"get":{"summary":"Рассылки","description":"Нужно разрешение campaigns:read.","operationId":"get__campaigns_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/campaigns/{id}/start":{"post":{"summary":"Рассылки","description":"Нужно разрешение campaigns:write.","operationId":"post__campaigns_id_start","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"sendAt":{"type":"string","format":"date-time"}},"description":"Без sendAt запускается сейчас. Можно назначить время не более чем на 90 дней вперёд. Учитываются согласия, исключения и паузы получателей."}}}}}},"/campaigns/{id}/{action}":{"post":{"summary":"Рассылки","description":"Нужно разрешение campaigns:write.","operationId":"post__campaigns_id_action_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","enum":["pause","cancel"]}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/automations":{"get":{"summary":"Сценарии","description":"Нужно разрешение automations:write.","operationId":"get__automations","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}},"post":{"summary":"Сценарии","description":"Нужно разрешение automations:write.","operationId":"post__automations","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"trigger":{"type":"string","pattern":"^[a-z][a-z0-9_.-]{1,79}$"},"steps":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"const":"wait"},"minutes":{"type":"integer","minimum":1,"maximum":43200}},"required":["type","minutes"]},{"type":"object","properties":{"type":{"const":"email"},"templateId":{"type":"string","format":"uuid"},"sender":{"type":"string","format":"email"}},"required":["type","templateId","sender"]}]},"maxItems":20,"minItems":1}},"required":["name","trigger","steps"]}}}}}},"/automations/{id}":{"patch":{"summary":"Сценарии","description":"Нужно разрешение automations:write.","operationId":"patch__automations_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}}}},"/triggers":{"post":{"summary":"Запуск сценария","description":"Нужно разрешение messages:send.","operationId":"post__triggers","security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"event":{"type":"string","maxLength":80}},"required":["email","event"],"description":"Запускает включённые сценарии с указанным событием для существующего контакта. Повтор ключа не запускает тот же сценарий второй раз."}}}}}},"/webhooks":{"get":{"summary":"Вебхуки","description":"Нужно разрешение webhooks:write.","operationId":"get__webhooks","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}},"post":{"summary":"Вебхуки","description":"Нужно разрешение webhooks:write.","operationId":"post__webhooks","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","pattern":"^https://","description":"Публичный HTTPS-адрес на порту 443. Локальные и служебные адреса запрещены."},"events":{"type":"array","items":{"type":"string","enum":["queued","sent","delivered","opened","clicked","retry","failed","unsubscribed","subscribed","spam","suppressed","uncertain"]},"minItems":1}},"required":["url","events"],"description":"Секрет для проверки подписи выдаётся один раз."}}}}}},"/webhooks/{id}":{"patch":{"summary":"Вебхуки","description":"Нужно разрешение webhooks:write.","operationId":"patch__webhooks_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","pattern":"^https://"},"events":{"type":"array","items":{"type":"string","enum":["queued","sent","delivered","opened","clicked","retry","failed","unsubscribed","subscribed","spam","suppressed","uncertain"]}},"previousUrl":{"type":"string","format":"uri"}},"description":"Изменяет только переданные поля. Дождётся уже начатого уведомления. previousUrl защищает от перезаписи одновременно изменённого адреса.","anyOf":[{"required":["enabled"]},{"required":["url"]},{"required":["events"]}]}}}}},"delete":{"summary":"Вебхуки","description":"Нужно разрешение webhooks:write.","operationId":"delete__webhooks_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/webhooks/{id}/test":{"post":{"summary":"Вебхуки","description":"Нужно разрешение webhooks:write.","operationId":"post__webhooks_id_test","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/webhooks/{id}/history":{"get":{"summary":"Вебхуки","description":"Нужно разрешение webhooks:write.","operationId":"get__webhooks_id_history","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/team":{"get":{"summary":"Команда","description":"Нужно разрешение team:write.","operationId":"get__team","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/team/invite":{"post":{"summary":"Команда","description":"Нужно разрешение team:write.","operationId":"post__team_invite","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"role":{"type":"string","enum":["admin","developer","marketer","analyst","accountant"]}},"required":["email","role"],"description":"Приглашение действует 7 дней. Нельзя передать больше прав, чем есть у создателя."}}}}}},"/team/{id}":{"patch":{"summary":"Команда","description":"Нужно разрешение team:write.","operationId":"patch__team_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["admin","developer","marketer","analyst","accountant","custom"]},"permissions":{"type":"array","items":{"type":"string","enum":["messages:send","messages:read","domains:read","domains:write","contacts:read","contacts:write","keys:write","templates:read","templates:write","campaigns:read","campaigns:write","automations:write","webhooks:write","projects:write","team:write","finance:read","finance:write","support:write","audit:read"]}}},"required":["role"],"description":"Для custom передайте permissions. Роль владельца защищена от изменения."}}}}},"delete":{"summary":"Команда","description":"Нужно разрешение team:write.","operationId":"delete__team_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/projects":{"post":{"summary":"Проекты","description":"Нужно разрешение projects:write.","operationId":"post__projects","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":150}},"required":["name"]}}}}}},"/audit":{"get":{"summary":"Журнал","description":"Нужно разрешение audit:read.","operationId":"get__audit","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/tickets":{"get":{"summary":"Поддержка","description":"Нужно разрешение support:write.","operationId":"get__tickets","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}},"post":{"summary":"Поддержка","description":"Нужно разрешение support:write.","operationId":"post__tickets","security":[{"session":[]}],"parameters":[{"name":"X-CSRF-Token","in":"header","required":true,"schema":{"type":"string"},"description":"Из текущего защищённого сеанса; API-ключ для этого действия не подходит."}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","maxLength":150},"text":{"type":"string","maxLength":10000},"category":{"type":"string","enum":["question","delivery","billing","appeal"],"default":"question"}},"required":["subject","text"],"description":"Доступно только через сеанс вошедшего пользователя."}}}}}},"/tickets/{id}":{"get":{"summary":"Поддержка","description":"Нужно разрешение support:write.","operationId":"get__tickets_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/tickets/{id}/reply":{"post":{"summary":"Поддержка","description":"Нужно разрешение support:write.","operationId":"post__tickets_id_reply","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-CSRF-Token","in":"header","required":true,"schema":{"type":"string"},"description":"Из текущего защищённого сеанса; API-ключ для этого действия не подходит."}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","maxLength":10000},"attachment":{"type":"object","properties":{"filename":{"type":"string","maxLength":150},"content":{"type":"string","contentEncoding":"base64","maxLength":2800000}},"required":["filename","content"],"description":"Один файл до 2 МБ; путь к файлу передавать нельзя."}},"required":["text"],"description":"Доступно только через сеанс вошедшего пользователя. Вложение необязательно."}}}}}},"/reports":{"get":{"summary":"Отчёты","description":"Нужно разрешение messages:read.","operationId":"get__reports","security":[{"bearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Начало периода. По умолчанию — 7 дней назад."},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Конец периода. По умолчанию — сейчас. Интервал не более 366 дней."}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/messages-search":{"get":{"summary":"Поиск писем","description":"Нужно разрешение messages:read.","operationId":"get__messages_search","security":[{"bearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Начальная дата создания письма с часовым поясом."},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Конечная дата создания письма с часовым поясом."},{"name":"before","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"nextCursor из предыдущего ответа."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":500}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":254},"description":"Адрес отправителя, получателя или точный ID письма."},{"name":"state","in":"query","required":false,"schema":{"type":"string","maxLength":30}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["csv"]}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{},"nextCursor":{"type":["string","null"],"format":"uuid"}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/billing":{"get":{"summary":"Оплата","description":"Нужно разрешение finance:read.","operationId":"get__billing","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/payers":{"post":{"summary":"Плательщики","description":"Нужно разрешение finance:write.","operationId":"post__payers","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type","name","email"],"properties":{"type":{"type":"string","enum":["individual","entrepreneur","company"]},"name":{"type":"string","maxLength":250},"email":{"type":"string","format":"email"},"inn":{"type":"string","pattern":"^([0-9]{10}|[0-9]{12})$"},"kpp":{"type":"string","pattern":"^[0-9]{9}$"},"ogrn":{"type":"string","pattern":"^([0-9]{13}|[0-9]{15})$"},"address":{"type":"string","maxLength":500},"postalAddress":{"type":"string","maxLength":500},"legalForm":{"type":"string","maxLength":80},"contactName":{"type":"string","maxLength":150},"phone":{"type":"string","maxLength":25},"bankName":{"type":"string","maxLength":250},"bik":{"type":"string","pattern":"^[0-9]{9}$"},"account":{"type":"string","pattern":"^[0-9]{20}$"},"correspondentAccount":{"type":"string","pattern":"^[0-9]{20}$"}},"description":"Для ИП и компании обязательны ИНН и адрес. Полные реквизиты сохраняются в аккаунте организации."}}}}}},"/orders":{"post":{"summary":"Заказы","description":"Нужно разрешение finance:write.","operationId":"post__orders","security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}},"example":{"data":{"id":"00000000-0000-4000-8000-000000000001","state":"pending","url":"https://pay.tbank-online.com/example"}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}},"example":{"data":{"id":"00000000-0000-4000-8000-000000000001","state":"pending","url":"https://pay.tbank-online.com/example"}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}},"example":{"data":{"id":"00000000-0000-4000-8000-000000000001","state":"pending","url":"https://pay.tbank-online.com/example"}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["payerId","planId","method"],"properties":{"payerId":{"type":"string","format":"uuid"},"planId":{"type":"string","format":"uuid"},"method":{"type":"string","enum":["card","sbp","invoice"]},"autoRenew":{"type":"boolean","default":false,"description":"Только после явного согласия на сумму и период; доступно для карты при подключённом автопродлении."}}}}}}}},"/orders/{id}/refund-request":{"post":{"summary":"Заказы","description":"Нужно разрешение finance:write.","operationId":"post__orders_id_refund_request","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","minLength":10,"maxLength":2000}}}}}}}},"/segments":{"get":{"summary":"Группы получателей","description":"Нужно разрешение contacts:read.","operationId":"get__segments","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}},"post":{"summary":"Группы получателей","description":"Нужно разрешение contacts:write.","operationId":"post__segments","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":150},"rules":{"type":"object","properties":{"tagsAll":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":50}},"emailDomain":{"type":"string"},"fields":{"type":"object","maxProperties":10,"additionalProperties":{"type":"string","maxLength":300}}}}}}}}}}},"/segments/{id}":{"get":{"summary":"Группы получателей","description":"Нужно разрешение contacts:read.","operationId":"get__segments_id_","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/subscription/cancel-renewal":{"post":{"summary":"Подписка","description":"Нужно разрешение finance:write.","operationId":"post__subscription_cancel_renewal","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"description":"Отключает будущие автоплатежи текущей организации. Уже отправленный запрос банка проверяется отдельно."}}}}}},"/delivery-status":{"get":{"summary":"Готовность к отправке","description":"Нужно разрешение domains:read.","operationId":"get__delivery_status","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}},"/contacts/{id}/pause":{"post":{"summary":"Контакты","description":"Нужно разрешение contacts:write.","operationId":"post__contacts_id_pause","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["days"],"properties":{"days":{"type":"integer","enum":[7,30]}},"description":"Приостанавливает рекламные письма. Сервисные уведомления не затрагиваются."}}}}}},"/contacts/{id}/merge":{"post":{"summary":"Контакты","description":"Нужно разрешение contacts:write.","operationId":"post__contacts_id_merge","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["sourceId","confirmed"],"properties":{"sourceId":{"type":"string","format":"uuid"},"confirmed":{"const":true}},"description":"Объединяет поля, теги и историю в пределах проекта. Согласие остаётся привязанным к исходному адресу."}}}}}},"/usage":{"get":{"summary":"Остаток писем и готовность проекта","description":"Нужно разрешение messages:read.","operationId":"get__usage","security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Успешный ответ в поле data","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"scope":{"const":"organization"},"approved":{"type":"boolean"},"blocked":{"type":"boolean"},"subscription":{"anyOf":[{"type":"null"},{"type":"object","properties":{"name":{"type":"string"},"active":{"type":"boolean"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":["string","null"],"format":"date-time"},"paidUntil":{"type":"string","format":"date-time"},"limit":{"type":"integer","minimum":0},"used":{"type":"integer","minimum":0},"baseRemaining":{"type":"integer","minimum":0},"extraRemaining":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0}}}]},"daily":{"type":"object","properties":{"limit":{"type":"integer","minimum":0},"used":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0}}},"queue":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["queued","retry","sending","uncertain"]},"count":{"type":"integer","minimum":0}}}},"connections":{"anyOf":[{"type":"null"},{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["api","smtp"]},"count":{"type":"integer","minimum":0}}}}]}},"required":["scope","subscription","daily","queue","connections"],"description":"Остатки общие для организации; очередь и число действующих ключей относятся только к текущему проекту. connections возвращается только с keys:write. При истёкшем тарифе remaining равен нулю; extraRemaining сохраняется до продления."}}}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"scope":{"const":"organization"},"approved":{"type":"boolean"},"blocked":{"type":"boolean"},"subscription":{"anyOf":[{"type":"null"},{"type":"object","properties":{"name":{"type":"string"},"active":{"type":"boolean"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":["string","null"],"format":"date-time"},"paidUntil":{"type":"string","format":"date-time"},"limit":{"type":"integer","minimum":0},"used":{"type":"integer","minimum":0},"baseRemaining":{"type":"integer","minimum":0},"extraRemaining":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0}}}]},"daily":{"type":"object","properties":{"limit":{"type":"integer","minimum":0},"used":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0}}},"queue":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["queued","retry","sending","uncertain"]},"count":{"type":"integer","minimum":0}}}},"connections":{"anyOf":[{"type":"null"},{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["api","smtp"]},"count":{"type":"integer","minimum":0}}}}]}},"required":["scope","subscription","daily","queue","connections"],"description":"Остатки общие для организации; очередь и число действующих ключей относятся только к текущему проекту. connections возвращается только с keys:write. При истёкшем тарифе remaining равен нулю; extraRemaining сохраняется до продления."}}}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"scope":{"const":"organization"},"approved":{"type":"boolean"},"blocked":{"type":"boolean"},"subscription":{"anyOf":[{"type":"null"},{"type":"object","properties":{"name":{"type":"string"},"active":{"type":"boolean"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":["string","null"],"format":"date-time"},"paidUntil":{"type":"string","format":"date-time"},"limit":{"type":"integer","minimum":0},"used":{"type":"integer","minimum":0},"baseRemaining":{"type":"integer","minimum":0},"extraRemaining":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0}}}]},"daily":{"type":"object","properties":{"limit":{"type":"integer","minimum":0},"used":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0}}},"queue":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["queued","retry","sending","uncertain"]},"count":{"type":"integer","minimum":0}}}},"connections":{"anyOf":[{"type":"null"},{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["api","smtp"]},"count":{"type":"integer","minimum":0}}}}]}},"required":["scope","subscription","daily","queue","connections"],"description":"Остатки общие для организации; очередь и число действующих ключей относятся только к текущему проекту. connections возвращается только с keys:write. При истёкшем тарифе remaining равен нулю; extraRemaining сохраняется до продления."}}}}}},"204":{"description":"Выполнено без тела ответа"},"400":{"description":"Неверный JSON","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"401":{"description":"Нужна авторизация","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"403":{"description":"Недостаточно прав","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"404":{"description":"Запись не найдена","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"409":{"description":"Конфликт версии или ключа","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"422":{"description":"Ошибка данных","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}},"429":{"description":"Лимит","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}}}}}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"},"session":{"type":"apiKey","in":"cookie","name":"__Host-ts_session"}},"schemas":{"Message":{"type":"object","required":["from","to","subject","text","kind"],"properties":{"from":{"type":"string","format":"email"},"to":{"type":"string","format":"email"},"subject":{"type":"string","maxLength":300},"text":{"type":"string","maxLength":500000},"html":{"type":"string","maxLength":1000000},"kind":{"type":"string","enum":["transactional","marketing"]},"sendAt":{"type":"string","format":"date-time"},"tracking":{"type":"boolean","default":false},"attachments":{"type":"array","maxItems":5,"items":{"type":"object","required":["filename","content"],"properties":{"filename":{"type":"string","maxLength":150},"content":{"type":"string","contentEncoding":"base64"}}}}}}}}}