{
  "openapi": "3.1.0",
  "info": {
    "title": "Adapt Mail API",
    "version": "0.16.0",
    "description": "API pour travailler avec des boîtes aux lettres, des lettres, des fichiers et des contacts. La gestion des abonnements est disponible dans votre compte personnel où vous avez connecté votre email."
  },
  "paths": {
    "/v1/auth/login": {
      "post": {
        "tags": [
          "Авторизация и аккаунт"
        ],
        "summary": "Connectez-vous dans le navigateur",
        "operationId": "login_v1_auth_login_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Login"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mailbox_id": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "session_id": {
                      "type": "string",
                      "format": "uuid"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Trop de demandes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "L'itinéraire est pour adapt-mail.com et nécessite Origin: https://adapt-mail.com. Retours HttpOnly cookies et non classifiés session_id. Pour votre client /v1/auth/token.",
        "security": []
      }
    },
    "/v1/auth/token": {
      "post": {
        "tags": [
          "Авторизация и аккаунт"
        ],
        "summary": "Obtenir un jeton utilisateur",
        "operationId": "token_v1_auth_token_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Login"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "access_token": {
                      "type": "string"
                    },
                    "token_type": {
                      "type": "string",
                      "const": "Bearer"
                    },
                    "expires_in": {
                      "type": "integer",
                      "const": 3600
                    },
                    "mailbox_id": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Trop de demandes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Émet un jeton d'accès pendant une heure en fonction de l'identifiant et du mot de passe. Spécifiez mode=account pour accéder à toutes les boîtes aux lettres du compte ou mode=mailbox pour accéder à une adresse. Passez access_token dans l’en-tête Authorization: Bearer <access_token>.",
        "security": []
      }
    },
    "/v1/auth/sessions": {
      "get": {
        "tags": [
          "Авторизация и аккаунт"
        ],
        "summary": "Sessions enregistrées",
        "operationId": "sessions_v1_auth_sessions_get",
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "session_id": {
                        "type": "string"
                      },
                      "mailbox_id": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "login": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Obligatoire cookie mail_browser. X-API-Key et Bearer ne remplacent pas ce cookie. Sans cookie, une liste vide est renvoyée.",
        "security": [
          {
            "Browser": []
          }
        ]
      }
    },
    "/v1/auth/logout": {
      "post": {
        "tags": [
          "Авторизация и аккаунт"
        ],
        "summary": "Se déconnecter de la session",
        "operationId": "logout_v1_auth_logout_post",
        "security": [
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "logged_out": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Session utilisateur uniquement. Rappelle l'entrée sélectionnée ; les entrées restantes sont conservées."
      }
    },
    "/v1/me": {
      "get": {
        "tags": [
          "Авторизация и аккаунт"
        ],
        "summary": "Profil utilisateur",
        "operationId": "me_v1_me_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer"
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "verified": {
                      "type": "boolean"
                    },
                    "quota_mb": {
                      "type": "integer"
                    },
                    "mailbox_id": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "auth_type": {
                      "type": "string"
                    },
                    "login": {
                      "type": "string"
                    },
                    "is_admin": {
                      "type": "boolean"
                    },
                    "files_enabled": {
                      "type": "boolean"
                    },
                    "service_managed": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie le profil du compte de messagerie actuel. Utilisez-le pour afficher le nom d'utilisateur et la connexion dans votre application."
      }
    },
    "/v1/avatars/{domain}": {
      "get": {
        "tags": [
          "Логотипы доменов"
        ],
        "summary": "Logo du domaine",
        "operationId": "avatar_v1_avatars__domain__get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "202": {
            "description": "Le logo est en préparation"
          },
          "204": {
            "description": "Pas de logo"
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Trop de demandes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "200 - image ; 202 — préparation, répéter après Retry-After ; 204 - pas de logo ; 503 - erreur temporaire. Le logo ne confirme pas l'identité de l'expéditeur."
      }
    },
    "/v1/domains": {
      "get": {
        "tags": [
          "Домены и ящики"
        ],
        "summary": "Liste des domaines",
        "operationId": "list_domains_v1_domains_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Domain"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Des domaines personnalisés et un domaine partagé sont disponibles pour créer une adresse personnelle."
      }
    },
    "/v1/domains/{domain_id}/dns": {
      "get": {
        "tags": [
          "Домены и ящики"
        ],
        "summary": "DNS-enregistrements de domaine",
        "operationId": "domain_dns_v1_domains__domain_id__dns_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Domain Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "domain_id": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string"
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          },
                          "observed": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "matches": {
                            "type": "boolean"
                          },
                          "error": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Les instructions contiennent les valeurs exactes DNS- et le résultat du test, mais ne modifient pas automatiquement DNS."
      }
    },
    "/v1/mailboxes": {
      "get": {
        "tags": [
          "Домены и ящики"
        ],
        "summary": "Liste des cartons et limite de consommation",
        "operationId": "list_mailboxes_v1_mailboxes_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Mailbox"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "La liste des boîtes aux lettres est limitée par le propriétaire ou la seule boîte aux lettres de la session utilisateur."
      }
    },
    "/v1/mailboxes/{mailbox_id}": {
      "patch": {
        "tags": [
          "Домены и ящики"
        ],
        "summary": "Paramètres de la boîte aux lettres",
        "operationId": "update_mailbox_v1_mailboxes__mailbox_id__patch",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailboxUpdate"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "400": {
            "description": "En-tête ou identifiant invalide",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Utilisez /v1 pour modifier name, password et signature. Modifiez le quota commun quota_mb dans le panneau de votre hébergeur. Les fichiers n’ont pas de quota séparé. Idempotency-Key est facultatif, mais recommandé pour les nouvelles tentatives."
      }
    },
    "/v1/mailboxes/{mailbox_id}/folders": {
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Dossiers et compteurs",
        "operationId": "folders_v1_mailboxes__mailbox_id__folders_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "flags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "total": {
                        "type": "integer"
                      },
                      "unread": {
                        "type": "integer"
                      },
                      "uidvalidity": {
                        "type": "integer"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie une liste de dossiers, le nombre d'e-mails total, le nombre de messages non lus unread et la valeur uidvalidity pour chaque dossier. Utilisez le nom du dossier et uidvalidity dans les requêtes sur ses lettres."
      },
      "post": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Création d'un dossier",
        "operationId": "create_folder_v1_mailboxes__mailbox_id__folders_post",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NameInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Le dossier personnalisé est créé en IMAP et est disponible pour les autres clients de messagerie."
      }
    },
    "/v1/mailboxes/{mailbox_id}/messages": {
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Liste des lettres",
        "operationId": "messages_v1_mailboxes__mailbox_id__messages_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "folder",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "INBOX",
              "title": "Folder"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200,
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Before"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MessageSummary"
                      }
                    },
                    "next_before": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "uidvalidity": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie jusqu'à 40 lettres, du nouveau UID à l'ancien. Pour la page suivante, passez next_before comme before.. Pour next_before=null, il n'y a plus de pages. Read ne définit pas l'indicateur de lecture."
      }
    },
    "/v1/mailboxes/{mailbox_id}/messages/{uid}": {
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Contenu du message",
        "operationId": "message_v1_mailboxes__mailbox_id__messages__uid__get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Uid"
            }
          },
          {
            "name": "uidvalidity",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Uidvalidity"
            }
          },
          {
            "name": "folder",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "INBOX",
              "title": "Folder"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Envoyez folder, uidvalidity et uid à partir de la liste de diffusion. HTML effacé, les images externes ne sont pas incluses. Pour marquer une lettre comme lue, effectuez une action distincte read."
      }
    },
    "/v1/mailboxes/{mailbox_id}/messages/actions": {
      "post": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Actions avec des lettres",
        "operationId": "action_v1_mailboxes__mailbox_id__messages_actions_post",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageAction"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "updated": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Applique une action aux messages sélectionnés dans un dossier. Transmettez leurs identifiants à uids, le nom du dossier à folder et son uidvalidity. Pour action=move, précisez également le dossier cible à destination."
      }
    },
    "/v1/mailboxes/{mailbox_id}/messages/{uid}/eml": {
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Téléchargez la lettre à EML",
        "operationId": "export_eml_v1_mailboxes__mailbox_id__messages__uid__eml_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Uid"
            }
          },
          {
            "name": "uidvalidity",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Uidvalidity"
            }
          },
          {
            "name": "folder",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "INBOX",
              "title": "Folder"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "message/rfc822": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie les MIME-bytes d'origine avec les en-têtes et les pièces jointes. Ne change pas la lisibilité. PDF est créé dans le navigateur via l'impression ; Il n’existe pas d’itinéraire PDF- distinct."
      }
    },
    "/v1/mailboxes/{mailbox_id}/messages/{uid}/attachments/{index}": {
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Télécharger la pièce jointe",
        "operationId": "attachment_v1_mailboxes__mailbox_id__messages__uid__attachments__index__get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Uid"
            }
          },
          {
            "name": "index",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Index"
            }
          },
          {
            "name": "uidvalidity",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Uidvalidity"
            }
          },
          {
            "name": "folder",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "INBOX",
              "title": "Folder"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          },
          {
            "name": "preview",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "pdf"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-File-Scan": {
                "schema": {
                  "type": "string"
                }
              },
              "X-File-Scanned-At": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Ajoutez preview=pdf à la requête de contenu d’un fichier ou d’une pièce jointe DOC, XLS, XLSX, PPT, PPTX ou ODT. Limite : 10 conversions par minute et par boîte."
      }
    },
    "/v1/mailboxes/{mailbox_id}/send": {
      "post": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Envoyer une lettre",
        "operationId": "send_v1_mailboxes__mailbox_id__send_post",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendInput"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "400": {
            "description": "En-tête ou identifiant invalide",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Taille dépassée",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Obligatoire Idempotency-Key 8 à 128 caractères. Répéter avec la même clé et le même corps renvoie la même opération ; un autre organisme donne 409. HTTP 202 signifie faire la queue. Vérifiez l'état de l'opération, et non le fait qu'une réponse a été reçue."
      }
    },
    "/v1/operations": {
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Liste des opérations",
        "operationId": "operations_v1_operations_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Operation"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie les 100 dernières opérations. Une session d'une boîte aux lettres individuelle ne voit que ses opérations."
      }
    },
    "/v1/operations/{operation_id}": {
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "État de l'opération",
        "operationId": "operation_v1_operations__operation_id__get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "operation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Operation Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie l'état actuel d'une opération par son id. Alors que status est égal à queued ou running, l'opération n'est pas terminée. Une fois terminé, cochez result en cas de succès ou error en cas d'erreur."
      }
    },
    "/v1/operations/{operation_id}/cancel": {
      "post": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Annuler l'envoi",
        "operationId": "cancel_v1_operations__operation_id__cancel_post",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "operation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Operation Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cancelled": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Annule l'envoi d'une lettre alors que l'opération est dans l'état queued. Si l'envoi a déjà commencé, terminé ou a été annulé, un 409 est renvoyé. Vous ne pouvez pas rappeler une lettre déjà envoyée en utilisant cette méthode."
      }
    },
    "/v1/operations/{operation_id}/retry": {
      "post": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Répétez l'opération",
        "operationId": "retry_operation_v1_operations__operation_id__retry_post",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "operation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Operation Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Redémarre l'application des règles d'expéditeur : kind=sender_rules, status=failed. L'envoi de lettres ne peut pas être répété en utilisant cette méthode. Pour un état inapproprié, 409 est renvoyé ; La répétition de la création et de la configuration d'une boîte aux lettres via cette méthode n'est pas disponible et renvoie 403."
      }
    },
    "/v1/mailboxes/{mailbox_id}/drafts/{draft_id}": {
      "put": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Enregistrer le brouillon",
        "operationId": "save_draft_v1_mailboxes__mailbox_id__drafts__draft_id__put",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "draft_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Draft Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DraftInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Crée ou met à jour un brouillon avant draft_id. Pour un nouveau brouillon, générez UUID ; Pour les sauvegardes ultérieures, utilisez le même identifiant. Vous pouvez continuer votre brouillon depuis un autre appareil après vous être connecté à la même boîte aux lettres."
      },
      "delete": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Supprimer le brouillon",
        "operationId": "delete_draft_v1_mailboxes__mailbox_id__drafts__draft_id__delete",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "draft_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Draft Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "La suppression d'un brouillon n'affecte pas un e-mail déjà mis en file d'attente."
      }
    },
    "/v1/mailboxes/{mailbox_id}/drafts": {
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Liste des brouillons",
        "operationId": "drafts_v1_mailboxes__mailbox_id__drafts_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "mailbox_id": {
                        "type": "integer"
                      },
                      "data": {
                        "$ref": "#/components/schemas/DraftInput"
                      },
                      "created_at": {
                        "type": "string",
                        "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
                      },
                      "updated_at": {
                        "type": "string",
                        "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie jusqu'à 100 brouillons, du plus récent au plus ancien."
      }
    },
    "/v1/mailboxes/{mailbox_id}/threads": {
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Liste des dialogues",
        "operationId": "threads_v1_mailboxes__mailbox_id__threads_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "thread_id": {
                        "type": "string"
                      },
                      "updated_at": {
                        "type": "string",
                        "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
                      },
                      "messages": {
                        "type": "integer"
                      },
                      "unread": {
                        "type": "integer"
                      },
                      "senders": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "subject": {
                        "type": "string"
                      },
                      "sender": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie jusqu'à 100 boîtes de dialogue, en commençant par les plus récemment mises à jour. Les messages des dossiers Trash et Junk ne sont pas inclus dans la liste. La nouvelle lettre peut paraître avec un léger retard ; réessayez la demande de mise à jour de la liste."
      }
    },
    "/v1/mailboxes/{mailbox_id}/threads/{thread_id}": {
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Lettres de dialogue",
        "operationId": "thread_v1_mailboxes__mailbox_id__threads__thread_id__get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Thread Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Message"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie jusqu'à 100 lettres de la conversation sélectionnée, de l'ancienne à la nouvelle. Transmettez thread_id à partir de la liste de dialogue. Les e-mails déjà supprimés ou qui ne sont plus disponibles ne sont pas inclus dans la réponse."
      }
    },
    "/v1/mailboxes/{mailbox_id}/sender-rules": {
      "put": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Règle de l'expéditeur",
        "operationId": "sender_rule_v1_mailboxes__mailbox_id__sender_rules_put",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SenderRule"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Crée ou met à jour une règle pour l'adresse sender. Spécifiez action=spam pour diriger les nouveaux e-mails de l'expéditeur vers le spam, ou action=allow pour autoriser ses e-mails. La règle s’applique aux futurs e-mails entrants."
      },
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Liste des règles d'expéditeur",
        "operationId": "rules_v1_mailboxes__mailbox_id__sender_rules_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer"
                      },
                      "mailbox_id": {
                        "type": "integer"
                      },
                      "sender": {
                        "type": "string"
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "spam",
                          "allow"
                        ]
                      },
                      "created_at": {
                        "type": "string",
                        "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie les règles d'expéditeur pour la boîte aux lettres sélectionnée. Chaque règle contient une adresse sender, une action action et un identifiant id pour une suppression ultérieure."
      }
    },
    "/v1/mailboxes/{mailbox_id}/sender-rules/{rule_id}": {
      "delete": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Supprimer une règle d'expéditeur",
        "operationId": "delete_rule_v1_mailboxes__mailbox_id__sender_rules__rule_id__delete",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Rule Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Supprime la règle de l'expéditeur d'ici rule_id. Les messages suivants sont traités par les règles de messagerie générales. Les messages déjà reçus restent dans leurs dossiers."
      }
    },
    "/v1/mailboxes/{mailbox_id}/contacts": {
      "get": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Liste de contacts",
        "operationId": "contacts_v1_mailboxes__mailbox_id__contacts_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie jusqu'à 1 000 contacts triés par nom."
      },
      "post": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Enregistrer le contact",
        "operationId": "add_contact_v1_mailboxes__mailbox_id__contacts_post",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Contact"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactResponse"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Enregistre le nom et l'adresse du contact dans la boîte aux lettres sélectionnée. Si un contact avec le même email existe déjà, met à jour son nom sans créer de doublon."
      }
    },
    "/v1/mailboxes/{mailbox_id}/contacts/{contact_id}": {
      "delete": {
        "tags": [
          "Почтовый ящик"
        ],
        "summary": "Supprimer le contact",
        "operationId": "remove_contact_v1_mailboxes__mailbox_id__contacts__contact_id__delete",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Contact Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "La suppression d'un contact ne supprime pas les messages."
      }
    },
    "/v1/mailboxes/{mailbox_id}/files": {
      "get": {
        "tags": [
          "Файлы"
        ],
        "summary": "Liste des fichiers",
        "operationId": "files_v1_mailboxes__mailbox_id__files_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "content_type": {
                        "type": "string"
                      },
                      "size_bytes": {
                        "type": "integer"
                      },
                      "created_at": {
                        "type": "string",
                        "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Renvoie jusqu'à 1 000 fichiers prêts de la boîte aux lettres sélectionnée."
      },
      "post": {
        "tags": [
          "Файлы"
        ],
        "summary": "Télécharger le fichier",
        "operationId": "upload_v1_mailboxes__mailbox_id__files_post",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_v1_mailboxes__mailbox_id__files_post"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/File"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Taille dépassée",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "multipart/form-data, champ file. Taille de 1 octet à 25 Mio. L'antivirus vérifie le fichier avant de le télécharger. Un quota insuffisant donne 409, surdimensionné - 413, menace détectée - 422, contrôle indisponible - 503."
      }
    },
    "/v1/mailboxes/{mailbox_id}/files/{file_id}/download": {
      "get": {
        "tags": [
          "Файлы"
        ],
        "summary": "Télécharger le fichier",
        "operationId": "download_v1_mailboxes__mailbox_id__files__file_id__download_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "File Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-File-Scan": {
                "schema": {
                  "type": "string"
                }
              },
              "X-File-Scanned-At": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "La réponse contient des octets de fichier avec Content-Disposition: attachment. Le lien nécessite une autorisation à chaque demande ; le stockage public URL n’est pas émis."
      }
    },
    "/v1/mailboxes/{mailbox_id}/files/{file_id}/content": {
      "get": {
        "tags": [
          "Файлы"
        ],
        "summary": "Contenu du fichier",
        "operationId": "content_v1_mailboxes__mailbox_id__files__file_id__content_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "File Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          },
          {
            "name": "preview",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "pdf"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-File-Scan": {
                "schema": {
                  "type": "string"
                }
              },
              "X-File-Scanned-At": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Ajoutez preview=pdf à la requête de contenu d’un fichier ou d’une pièce jointe DOC, XLS, XLSX, PPT, PPTX ou ODT. Limite : 10 conversions par minute et par boîte."
      }
    },
    "/v1/mailboxes/{mailbox_id}/files/{file_id}": {
      "delete": {
        "tags": [
          "Файлы"
        ],
        "summary": "Supprimer le fichier",
        "operationId": "remove_v1_mailboxes__mailbox_id__files__file_id__delete",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "File Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Un dossier de soumission incomplet ne peut pas être supprimé : réponse 409. Le quota est libéré après suppression."
      }
    },
    "/v1/auth/login-link": {
      "post": {
        "tags": [
          "Авторизация и аккаунт"
        ],
        "summary": "Créer un lien de connexion",
        "operationId": "login_link_v1_auth_login_link_post",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          }
        ],
        "parameters": [
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginLinkInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginLinkResult"
                }
              }
            }
          },
          "401": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Votre serveur appelle POST /v1/auth/login-link avec X-API-Key et X-Customer-ID. Indiquez mailbox_id pour ouvrir uniquement cette boîte ; sans ce champ, tout le compte sera accessible. locale choisit la langue de l’interface."
      }
    },
    "/v1/auth/login-link/consume": {
      "post": {
        "tags": [
          "Авторизация и аккаунт"
        ],
        "summary": "Échanger un lien contre une session",
        "operationId": "consume_login_link_v1_auth_login_link_consume_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginLinkConsume"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrowserSessionResult"
                }
              }
            }
          },
          "403": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Erreur de requête",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Réservé à la page de connexion adapt-mail.com : POST avec Origin: https://adapt-mail.com. Renvoie session_id et des cookies HttpOnly. Lien réutilisé ou expiré : HTTP 410.",
        "security": []
      }
    },
    "/v1/mailboxes/{mailbox_id}/templates": {
      "get": {
        "tags": [
          "Настройки ящика"
        ],
        "summary": "Modèles de messages",
        "operationId": "templates_v1_mailboxes__mailbox_id__templates_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TemplateRecord"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Jusqu’à 100 modèles par boîte. Champs : name, subject, text et html ; le HTML est nettoyé. Un modèle n’envoie pas de message tout seul."
      },
      "post": {
        "tags": [
          "Настройки ящика"
        ],
        "summary": "Modèles de messages",
        "operationId": "create_template_v1_mailboxes__mailbox_id__templates_post",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailTemplate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateRecord"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Jusqu’à 100 modèles par boîte. Champs : name, subject, text et html ; le HTML est nettoyé. Un modèle n’envoie pas de message tout seul."
      }
    },
    "/v1/mailboxes/{mailbox_id}/templates/{template_id}": {
      "put": {
        "tags": [
          "Настройки ящика"
        ],
        "summary": "Modèles de messages",
        "operationId": "update_template_v1_mailboxes__mailbox_id__templates__template_id__put",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Template Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailTemplate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateRecord"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Jusqu’à 100 modèles par boîte. Champs : name, subject, text et html ; le HTML est nettoyé. Un modèle n’envoie pas de message tout seul."
      },
      "delete": {
        "tags": [
          "Настройки ящика"
        ],
        "summary": "Modèles de messages",
        "operationId": "delete_template_v1_mailboxes__mailbox_id__templates__template_id__delete",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Template Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "const": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Jusqu’à 100 modèles par boîte. Champs : name, subject, text et html ; le HTML est nettoyé. Un modèle n’envoie pas de message tout seul."
      }
    },
    "/v1/mailboxes/{mailbox_id}/autoresponder": {
      "get": {
        "tags": [
          "Настройки ящика"
        ],
        "summary": "Réponse automatique",
        "operationId": "autoresponder_v1_mailboxes__mailbox_id__autoresponder_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Autoresponder"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Indiquez un fuseau horaire pour les dates du répondeur ; repeat_days va de 1 à 30. Seuls les nouveaux messages personnels reçoivent une réponse : From doit correspondre à Return-Path."
      },
      "put": {
        "tags": [
          "Настройки ящика"
        ],
        "summary": "Réponse automatique",
        "operationId": "set_autoresponder_v1_mailboxes__mailbox_id__autoresponder_put",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Autoresponder"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Autoresponder"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Indiquez un fuseau horaire pour les dates du répondeur ; repeat_days va de 1 à 30. Seuls les nouveaux messages personnels reçoivent une réponse : From doit correspondre à Return-Path."
      }
    },
    "/v1/mailboxes/{mailbox_id}/filters": {
      "get": {
        "tags": [
          "Настройки ящика"
        ],
        "summary": "Filtres",
        "operationId": "filters_v1_mailboxes__mailbox_id__filters_get",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FilterRecord"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Une modification de filtre renvoie operation. L’application à l’historique nécessite un Idempotency-Key de 8 à 120 caractères. Réutilisez la clé lors des tentatives ; consultez GET /v1/operations/{operation_id}."
      },
      "post": {
        "tags": [
          "Настройки ящика"
        ],
        "summary": "Filtres",
        "operationId": "create_filter_v1_mailboxes__mailbox_id__filters_post",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailFilter"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilterChange"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Une modification de filtre renvoie operation. L’application à l’historique nécessite un Idempotency-Key de 8 à 120 caractères. Réutilisez la clé lors des tentatives ; consultez GET /v1/operations/{operation_id}."
      }
    },
    "/v1/mailboxes/{mailbox_id}/filters/{filter_id}": {
      "put": {
        "tags": [
          "Настройки ящика"
        ],
        "summary": "Filtres",
        "operationId": "update_filter_v1_mailboxes__mailbox_id__filters__filter_id__put",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "filter_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Filter Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailFilter"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilterChange"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Une modification de filtre renvoie operation. L’application à l’historique nécessite un Idempotency-Key de 8 à 120 caractères. Réutilisez la clé lors des tentatives ; consultez GET /v1/operations/{operation_id}."
      },
      "delete": {
        "tags": [
          "Настройки ящика"
        ],
        "summary": "Filtres",
        "operationId": "delete_filter_v1_mailboxes__mailbox_id__filters__filter_id__delete",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "filter_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Filter Id"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Une modification de filtre renvoie operation. L’application à l’historique nécessite un Idempotency-Key de 8 à 120 caractères. Réutilisez la clé lors des tentatives ; consultez GET /v1/operations/{operation_id}."
      }
    },
    "/v1/mailboxes/{mailbox_id}/filters/{filter_id}/apply": {
      "post": {
        "tags": [
          "Настройки ящика"
        ],
        "summary": "Appliquer aux messages existants",
        "operationId": "apply_filter_v1_mailboxes__mailbox_id__filters__filter_id__apply_post",
        "security": [
          {
            "PartnerKey": [],
            "Customer": []
          },
          {
            "Session": []
          },
          {
            "Browser": []
          }
        ],
        "parameters": [
          {
            "name": "mailbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mailbox Id"
            }
          },
          {
            "name": "filter_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Filter Id"
            }
          },
          {
            "name": "idempotency-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 120,
              "title": "Idempotency-Key"
            }
          },
          {
            "name": "X-Customer-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Customer-Id"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Réponse réussie",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "401": {
            "description": "Connexion requise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Pas d'accès",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflit d'État",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "503": {
            "description": "Indisponibilité temporaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Une modification de filtre renvoie operation. L’application à l’historique nécessite un Idempotency-Key de 8 à 120 caractères. Réutilisez la clé lors des tentatives ; consultez GET /v1/operations/{operation_id}."
      }
    }
  },
  "components": {
    "schemas": {
      "Body_upload_v1_mailboxes__mailbox_id__files_post": {
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_upload_v1_mailboxes__mailbox_id__files_post"
      },
      "Contact": {
        "properties": {
          "email": {
            "type": "string",
            "title": "Email"
          },
          "name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Name"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "email",
          "name"
        ],
        "title": "Contact",
        "example": {
          "email": "team@example.com",
          "name": "Support team"
        }
      },
      "DraftInput": {
        "properties": {
          "to": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 50,
            "title": "To",
            "description": "Adresses des principaux destinataires."
          },
          "cc": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Cc",
            "description": "Copiez les adresses des destinataires visibles par les autres participants."
          },
          "bcc": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Bcc",
            "description": "Adresses des destinataires en Cci."
          },
          "subject": {
            "type": "string",
            "maxLength": 998,
            "title": "Subject",
            "default": "",
            "description": "Objet de la lettre."
          },
          "text": {
            "type": "string",
            "maxLength": 200000,
            "title": "Text",
            "default": "",
            "description": "Le texte de la lettre sans mise en forme."
          },
          "html": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300000
              },
              {
                "type": "null"
              }
            ],
            "title": "Html",
            "description": "Version au format HTML- de la lettre."
          },
          "file_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 20,
            "title": "File Ids",
            "description": "ID fichiers précédemment téléchargés dans cette boîte aux lettres. Récupérez-les lors du téléchargement ou depuis la liste des fichiers."
          },
          "forward_message": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MessageReference"
              },
              {
                "type": "null"
              }
            ],
            "description": "L'e-mail d'origine dont les pièces jointes doivent être transférées."
          },
          "reply_to_message_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 998
              },
              {
                "type": "null"
              }
            ],
            "title": "Reply To Message Id",
            "description": "La valeur message_id de l'e-mail auquel vous répondez."
          },
          "references": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ],
            "title": "References",
            "description": "La valeur references du message d'origine pour enregistrer la chaîne de réponse."
          },
          "send_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Send At",
            "description": "Heure d'envoi différé avec fuseau horaire, par exemple 2026-11-01T12:00:00Z. Sans valeur, l'envoi commence au fur et à mesure du traitement de la file d'attente."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "DraftInput",
        "example": {
          "to": [
            "team@example.com"
          ],
          "subject": "Hello",
          "text": "A message from Adapt Mail"
        }
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "Login": {
        "properties": {
          "login": {
            "type": "string",
            "title": "Login"
          },
          "password": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Password"
          },
          "mode": {
            "type": "string",
            "enum": [
              "account",
              "mailbox"
            ],
            "title": "Mode",
            "default": "account"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "login",
          "password"
        ],
        "title": "Login"
      },
      "MailboxUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "quota_mb": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 10240
              },
              {
                "type": "null"
              }
            ],
            "title": "Quota Mb"
          },
          "file_quota_mb": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 512000,
                "minimum": 256
              },
              {
                "type": "null"
              }
            ],
            "title": "File Quota Mb"
          },
          "password": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128,
                "minLength": 12
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          },
          "signature": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 5000
              },
              {
                "type": "null"
              }
            ],
            "title": "Signature"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "MailboxUpdate",
        "example": {
          "name": "Support",
          "signature": "Support team"
        }
      },
      "MessageAction": {
        "properties": {
          "folder": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Folder",
            "description": "Nom du dossier dans la liste des dossiers, par exemple INBOX."
          },
          "uidvalidity": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "title": "Uidvalidity",
            "description": "La valeur est uidvalidity de la réponse API pour ce dossier."
          },
          "uids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Uids",
            "description": "Identifiants des lettres sélectionnées dans un dossier."
          },
          "action": {
            "type": "string",
            "enum": [
              "read",
              "unread",
              "star",
              "unstar",
              "move",
              "delete"
            ],
            "title": "Action"
          },
          "destination": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ],
            "title": "Destination",
            "description": "Nom du dossier cible. Requis pour action=move."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "folder",
          "uidvalidity",
          "uids",
          "action"
        ],
        "title": "MessageAction"
      },
      "MessageReference": {
        "properties": {
          "folder": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Folder",
            "description": "Nom du dossier dans la liste des dossiers, par exemple INBOX."
          },
          "uidvalidity": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "title": "Uidvalidity",
            "description": "La valeur est uidvalidity de la réponse API pour ce dossier."
          },
          "uid": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "title": "Uid"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "folder",
          "uidvalidity",
          "uid"
        ],
        "title": "MessageReference"
      },
      "NameInput": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Name"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ],
        "title": "NameInput"
      },
      "SendInput": {
        "properties": {
          "to": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 50,
            "minItems": 1,
            "title": "To",
            "description": "Adresses des principaux destinataires."
          },
          "cc": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Cc",
            "description": "Copiez les adresses des destinataires visibles par les autres participants."
          },
          "bcc": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Bcc",
            "description": "Adresses des destinataires en Cci."
          },
          "subject": {
            "type": "string",
            "maxLength": 998,
            "title": "Subject",
            "default": "",
            "description": "Objet de la lettre."
          },
          "text": {
            "type": "string",
            "maxLength": 200000,
            "title": "Text",
            "default": "",
            "description": "Le texte de la lettre sans mise en forme."
          },
          "html": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300000
              },
              {
                "type": "null"
              }
            ],
            "title": "Html",
            "description": "Version au format HTML- de la lettre."
          },
          "file_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 20,
            "title": "File Ids",
            "description": "ID fichiers précédemment téléchargés dans cette boîte aux lettres. Récupérez-les lors du téléchargement ou depuis la liste des fichiers."
          },
          "forward_message": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MessageReference"
              },
              {
                "type": "null"
              }
            ],
            "description": "L'e-mail d'origine dont les pièces jointes doivent être transférées."
          },
          "reply_to_message_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 998
              },
              {
                "type": "null"
              }
            ],
            "title": "Reply To Message Id",
            "description": "La valeur message_id de l'e-mail auquel vous répondez."
          },
          "references": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ],
            "title": "References",
            "description": "La valeur references du message d'origine pour enregistrer la chaîne de réponse."
          },
          "send_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Send At",
            "description": "Heure d'envoi différé avec fuseau horaire, par exemple 2026-11-01T12:00:00Z. Sans valeur, l'envoi commence au fur et à mesure du traitement de la file d'attente."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "to"
        ],
        "title": "SendInput",
        "example": {
          "to": [
            "team@example.com"
          ],
          "subject": "Hello",
          "text": "A message from Adapt Mail"
        }
      },
      "SenderRule": {
        "properties": {
          "sender": {
            "type": "string",
            "title": "Sender"
          },
          "action": {
            "type": "string",
            "enum": [
              "spam",
              "allow"
            ],
            "title": "Action",
            "default": "spam"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "sender"
        ],
        "title": "SenderRule",
        "example": {
          "sender": "sender@example.com",
          "action": "spam"
        }
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "Address": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        }
      },
      "MessageSummary": {
        "type": "object",
        "properties": {
          "uid": {
            "type": "integer"
          },
          "uidvalidity": {
            "type": "integer"
          },
          "folder": {
            "type": "string"
          },
          "message_id": {
            "type": "string"
          },
          "thread_id": {
            "type": "string"
          },
          "sender": {
            "type": "string"
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Address"
            }
          },
          "subject": {
            "type": "string"
          },
          "preview": {
            "type": "string"
          },
          "flags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "size_bytes": {
            "type": "integer"
          },
          "received_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          }
        }
      },
      "Attachment": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer"
          },
          "filename": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          },
          "size_bytes": {
            "type": "integer"
          }
        }
      },
      "Message": {
        "type": "object",
        "properties": {
          "uid": {
            "type": "integer"
          },
          "uidvalidity": {
            "type": "integer"
          },
          "folder": {
            "type": "string"
          },
          "message_id": {
            "type": "string"
          },
          "thread_id": {
            "type": "string"
          },
          "sender": {
            "type": "string"
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Address"
            }
          },
          "subject": {
            "type": "string"
          },
          "preview": {
            "type": "string"
          },
          "flags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "size_bytes": {
            "type": "integer"
          },
          "received_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          },
          "text": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attachment"
            }
          },
          "cc": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Address"
            }
          },
          "references": {
            "type": "string"
          },
          "reply_to": {
            "type": "string"
          }
        }
      },
      "Operation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID d'opération pour vérifier le statut et annuler une soumission en attente."
          },
          "kind": {
            "type": "string"
          },
          "mailbox_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed",
              "uncertain",
              "cancelled"
            ]
          },
          "run_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          },
          "created_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "La raison de l'erreur si l'opération n'a pas abouti."
          },
          "result": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": true
              },
              {
                "type": "null"
              }
            ],
            "description": "Le résultat de l'opération. Pour l'envoi, contient des informations sur les destinataires acceptés et rejetés."
          }
        }
      },
      "SendResult": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string"
          },
          "smtp_accepted": {
            "type": "boolean"
          },
          "sent_saved": {
            "type": "boolean"
          },
          "accepted_recipients": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rejected_recipients": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string"
                },
                "code": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "Mailbox": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "account_id": {
            "type": "integer"
          },
          "domain_id": {
            "type": "integer"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "quota_mb": {
            "type": "integer"
          },
          "used_bytes": {
            "type": "integer"
          },
          "file_quota_bytes": {
            "type": "integer"
          },
          "file_used_bytes": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "signature": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "access_allowed": {
            "type": "boolean"
          },
          "paid_until": {
            "anyOf": [
              {
                "type": "string",
                "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
              },
              {
                "type": "null"
              }
            ]
          },
          "ready_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
              },
              {
                "type": "null"
              }
            ]
          },
          "delete_after": {
            "anyOf": [
              {
                "type": "string",
                "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          },
          "updated_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          },
          "reserved_quota_mb": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "outbound_high_limit": {
            "type": "boolean"
          },
          "outbound_daily_recipient_limit": {
            "type": "integer"
          },
          "outbound_daily_recipients_used": {
            "type": "integer"
          },
          "outbound_daily_recipients_remaining": {
            "type": "integer"
          },
          "outbound_messages_per_minute": {
            "type": "integer"
          },
          "outbound_minute_messages_used": {
            "type": "integer"
          },
          "outbound_minute_messages_remaining": {
            "type": "integer"
          },
          "outbound_recipients_per_message": {
            "type": "integer"
          },
          "storage_shared": {
            "type": "boolean",
            "const": true
          }
        }
      },
      "Domain": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "account_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "is_shared": {
            "type": "boolean"
          },
          "verification_token": {
            "type": "string"
          },
          "dns_status": {
            "type": "object"
          },
          "created_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          },
          "updated_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          }
        }
      },
      "File": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "filename": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          },
          "size_bytes": {
            "type": "integer"
          },
          "scanned_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "ContactResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "mailbox_id": {
            "type": "integer"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            ]
          }
        }
      },
      "LoginLinkInput": {
        "properties": {
          "mailbox_id": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              {
                "type": "null"
              }
            ],
            "title": "Mailbox Id"
          },
          "locale": {
            "type": "string",
            "enum": [
              "en",
              "ru",
              "fr",
              "es",
              "de",
              "zh-cn",
              "ko",
              "tr",
              "hi",
              "pt-br"
            ],
            "title": "Locale",
            "default": "en"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "LoginLinkInput"
      },
      "LoginLinkConsume": {
        "properties": {
          "token": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$",
            "title": "Token"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "token"
        ],
        "title": "LoginLinkConsume"
      },
      "LoginLinkResult": {
        "properties": {
          "login_url": {
            "type": "string",
            "title": "Login Url"
          },
          "expires_in": {
            "type": "integer",
            "const": 300,
            "title": "Expires In"
          },
          "expires_at": {
            "type": "string",
            "title": "Expires At"
          },
          "account_id": {
            "type": "integer",
            "title": "Account Id"
          },
          "mailbox_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mailbox Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "login_url",
          "expires_in",
          "expires_at",
          "account_id",
          "mailbox_id"
        ],
        "title": "LoginLinkResult"
      },
      "BrowserSessionResult": {
        "properties": {
          "mailbox_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mailbox Id"
          },
          "session_id": {
            "type": "string",
            "title": "Session Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "mailbox_id",
          "session_id"
        ],
        "title": "BrowserSessionResult"
      },
      "MailTemplate": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Name"
          },
          "subject": {
            "type": "string",
            "maxLength": 998,
            "title": "Subject",
            "default": ""
          },
          "text": {
            "type": "string",
            "maxLength": 20000,
            "title": "Text",
            "default": ""
          },
          "html": {
            "type": "string",
            "maxLength": 30000,
            "title": "Html",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ],
        "title": "MailTemplate"
      },
      "MailFilter": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Name"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "match": {
            "type": "string",
            "enum": [
              "all",
              "any"
            ],
            "title": "Match",
            "default": "all"
          },
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/FilterCondition"
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1,
            "title": "Conditions"
          },
          "mark_read": {
            "type": "boolean",
            "title": "Mark Read",
            "default": false
          },
          "important": {
            "type": "boolean",
            "title": "Important",
            "default": false
          },
          "trash": {
            "type": "boolean",
            "title": "Trash",
            "default": false
          },
          "move_to": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Move To"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "conditions"
        ],
        "title": "MailFilter"
      },
      "FilterCondition": {
        "properties": {
          "field": {
            "type": "string",
            "enum": [
              "from",
              "to",
              "cc",
              "subject"
            ],
            "title": "Field"
          },
          "operator": {
            "type": "string",
            "enum": [
              "contains",
              "not_contains",
              "equals",
              "not_equals"
            ],
            "title": "Operator"
          },
          "value": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Value"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "field",
          "operator",
          "value"
        ],
        "title": "FilterCondition"
      },
      "Autoresponder": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": false
          },
          "subject": {
            "type": "string",
            "maxLength": 200,
            "title": "Subject",
            "default": ""
          },
          "text": {
            "type": "string",
            "maxLength": 10000,
            "title": "Text",
            "default": ""
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "repeat_days": {
            "type": "integer",
            "maximum": 30,
            "minimum": 1,
            "title": "Repeat Days",
            "default": 7
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "Autoresponder"
      },
      "TemplateRecord": {
        "type": "object",
        "required": [
          "id",
          "data",
          "updated_at"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "data": {
            "$ref": "#/components/schemas/MailTemplate"
          },
          "updated_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          }
        }
      },
      "FilterRecord": {
        "type": "object",
        "required": [
          "id",
          "data",
          "updated_at"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "data": {
            "$ref": "#/components/schemas/MailFilter"
          },
          "updated_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          }
        }
      },
      "FilterChange": {
        "type": "object",
        "required": [
          "id",
          "data",
          "updated_at",
          "operation"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "data": {
            "$ref": "#/components/schemas/MailFilter"
          },
          "updated_at": {
            "type": "string",
            "description": "Date et heure en UTC. S'il n'y a pas de décalage, la valeur représente également UTC."
          },
          "operation": {
            "$ref": "#/components/schemas/Operation"
          }
        }
      }
    },
    "securitySchemes": {
      "PartnerKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      },
      "Customer": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Customer-ID"
      },
      "Session": {
        "type": "http",
        "scheme": "bearer"
      },
      "Browser": {
        "type": "apiKey",
        "in": "cookie",
        "name": "mail_browser"
      }
    }
  },
  "servers": [
    {
      "url": "https://adapt-mail.com"
    }
  ]
}