{
  "openapi": "3.1.0",
  "info": {
    "title": "Hermesmail API",
    "version": "0.1.0",
    "description": "Transactional email for your own applications. Requests and responses are JSON; a failed request answers with statusCode, name and message."
  },
  "servers": [
    {
      "url": "https://api.hermesmail.app"
    }
  ],
  "paths": {
    "/api-keys": {
      "post": {
        "operationId": "createApiKey",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "permission": {
                    "type": "string",
                    "enum": [
                      "full_access",
                      "sending_access"
                    ]
                  },
                  "domain_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "Production sending",
                "permission": "sending_access"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "api_key"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "token"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, missing_required_field.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "missing_required_field"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listApiKeys",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "list"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "name": {
                            "type": "string"
                          },
                          "created_at": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                          },
                          "last_used_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "created_at",
                          "last_used_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "object",
                    "has_more",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/api-keys/{api_key_id}": {
      "patch": {
        "operationId": "updateApiKey",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "api_key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              },
              "example": {
                "name": "Production sending (renamed)"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "api_key"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "object",
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, missing_required_field, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "missing_required_field",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeApiKey",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "api_key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "api_key"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/domain-checks": {
      "post": {
        "operationId": "checkDomain",
        "description": "Hermesmail addition: checks whether a domain is disposable, invalid, high risk, or matched by an operator rule. Send either a domain name or an email address; any local part before @ is discarded at the API boundary and never stored, logged, or sent upstream.",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "maxLength": 1024
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 1024
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "domain": "example.test"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "domain_check"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "verdict": {
                      "type": "string",
                      "enum": [
                        "allow",
                        "block",
                        "unknown"
                      ]
                    },
                    "disposable": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "disposable",
                            "invalid_domain",
                            "high_risk",
                            "operator_rule",
                            "unavailable"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "checked_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "object",
                    "domain",
                    "verdict",
                    "disposable",
                    "reason",
                    "checked_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded, domain_check_quota_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded",
                        "domain_check_quota_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/domains": {
      "post": {
        "operationId": "createDomain",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1024
                  },
                  "region": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "custom_return_path": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "open_tracking": {
                    "type": "boolean"
                  },
                  "click_tracking": {
                    "type": "boolean"
                  },
                  "tracking_subdomain": {},
                  "tls": {
                    "type": "string",
                    "enum": [
                      "opportunistic",
                      "enforced"
                    ]
                  },
                  "capabilities": {
                    "type": "object",
                    "properties": {
                      "sending": {
                        "type": "string",
                        "enum": [
                          "enabled",
                          "disabled"
                        ]
                      },
                      "receiving": {
                        "type": "string",
                        "enum": [
                          "enabled",
                          "disabled"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "mail.example.test",
                "custom_return_path": "bounces"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "not_started",
                        "pending",
                        "verified",
                        "failed",
                        "temporary_failure",
                        "partially_verified",
                        "partially_failed"
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                    },
                    "region": {
                      "type": "string"
                    },
                    "open_tracking": {
                      "type": "boolean"
                    },
                    "click_tracking": {
                      "type": "boolean"
                    },
                    "capabilities": {
                      "type": "object",
                      "properties": {
                        "sending": {
                          "type": "string",
                          "enum": [
                            "enabled",
                            "disabled"
                          ]
                        },
                        "receiving": {
                          "type": "string",
                          "enum": [
                            "enabled",
                            "disabled"
                          ]
                        }
                      },
                      "required": [
                        "sending",
                        "receiving"
                      ],
                      "additionalProperties": false
                    },
                    "tracking_subdomain": {
                      "type": "string"
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "record": {
                            "type": "string",
                            "enum": [
                              "DKIM",
                              "SPF",
                              "Receiving",
                              "Tracking",
                              "TrackingCAA"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "MX",
                              "TXT",
                              "CNAME",
                              "CAA"
                            ]
                          },
                          "ttl": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "not_started",
                              "pending",
                              "verified",
                              "failed",
                              "temporary_failure"
                            ]
                          },
                          "value": {
                            "type": "string"
                          },
                          "priority": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 65535
                          }
                        },
                        "required": [
                          "record",
                          "name",
                          "type",
                          "ttl",
                          "status",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "status",
                    "created_at",
                    "region",
                    "open_tracking",
                    "click_tracking",
                    "capabilities",
                    "records"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, missing_required_field.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "missing_required_field"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "503": {
            "description": "Error: service_unavailable.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 503
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "service_unavailable"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listDomains",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "list"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "name": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "not_started",
                              "pending",
                              "verified",
                              "failed",
                              "temporary_failure",
                              "partially_verified",
                              "partially_failed"
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                          },
                          "region": {
                            "type": "string"
                          },
                          "open_tracking": {
                            "type": "boolean"
                          },
                          "click_tracking": {
                            "type": "boolean"
                          },
                          "capabilities": {
                            "type": "object",
                            "properties": {
                              "sending": {
                                "type": "string",
                                "enum": [
                                  "enabled",
                                  "disabled"
                                ]
                              },
                              "receiving": {
                                "type": "string",
                                "enum": [
                                  "enabled",
                                  "disabled"
                                ]
                              }
                            },
                            "required": [
                              "sending",
                              "receiving"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "status",
                          "created_at",
                          "region",
                          "open_tracking",
                          "click_tracking",
                          "capabilities"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "object",
                    "has_more",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/domains/{domain_id}": {
      "delete": {
        "operationId": "deleteDomain",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "domain"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "getDomain",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "domain"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "not_started",
                        "pending",
                        "verified",
                        "failed",
                        "temporary_failure",
                        "partially_verified",
                        "partially_failed"
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                    },
                    "region": {
                      "type": "string"
                    },
                    "open_tracking": {
                      "type": "boolean"
                    },
                    "click_tracking": {
                      "type": "boolean"
                    },
                    "capabilities": {
                      "type": "object",
                      "properties": {
                        "sending": {
                          "type": "string",
                          "enum": [
                            "enabled",
                            "disabled"
                          ]
                        },
                        "receiving": {
                          "type": "string",
                          "enum": [
                            "enabled",
                            "disabled"
                          ]
                        }
                      },
                      "required": [
                        "sending",
                        "receiving"
                      ],
                      "additionalProperties": false
                    },
                    "tracking_subdomain": {
                      "type": "string"
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "record": {
                            "type": "string",
                            "enum": [
                              "DKIM",
                              "SPF",
                              "Receiving",
                              "Tracking",
                              "TrackingCAA"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "MX",
                              "TXT",
                              "CNAME",
                              "CAA"
                            ]
                          },
                          "ttl": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "not_started",
                              "pending",
                              "verified",
                              "failed",
                              "temporary_failure"
                            ]
                          },
                          "value": {
                            "type": "string"
                          },
                          "priority": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 65535
                          }
                        },
                        "required": [
                          "record",
                          "name",
                          "type",
                          "ttl",
                          "status",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "tls": {
                      "type": "string",
                      "enum": [
                        "opportunistic",
                        "enforced"
                      ]
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "name",
                    "status",
                    "created_at",
                    "region",
                    "open_tracking",
                    "click_tracking",
                    "capabilities",
                    "records",
                    "tls"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateDomain",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {},
                  "region": {},
                  "custom_return_path": {},
                  "open_tracking": {
                    "type": "boolean"
                  },
                  "click_tracking": {
                    "type": "boolean"
                  },
                  "tracking_subdomain": {},
                  "tls": {
                    "type": "string",
                    "enum": [
                      "opportunistic",
                      "enforced"
                    ]
                  },
                  "capabilities": {
                    "type": "object",
                    "properties": {
                      "sending": {
                        "type": "string",
                        "enum": [
                          "enabled",
                          "disabled"
                        ]
                      },
                      "receiving": {
                        "type": "string",
                        "enum": [
                          "enabled",
                          "disabled"
                        ]
                      }
                    }
                  }
                }
              },
              "example": {
                "tls": "enforced"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "domain"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "object",
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "Error: resource_locked.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 409
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "resource_locked"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/domains/{domain_id}/verify": {
      "post": {
        "operationId": "verifyDomain",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "domain"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "object",
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "Error: resource_locked.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 409
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "resource_locked"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/emails": {
      "post": {
        "operationId": "sendEmail",
        "security": [
          {
            "apiKey": [
              "sending_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send a unique value to make a retry safe: for a day, a repeat of this request answers with the original outcome.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "template": {},
                  "topic_id": {},
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "subject": {
                    "type": "string"
                  },
                  "bcc": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "cc": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "reply_to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "html": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  },
                  "headers": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "scheduled_at": {
                    "type": "string"
                  },
                  "attachments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "content": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 255
                              }
                            }
                          ]
                        },
                        "path": {
                          "type": "string"
                        },
                        "filename": {
                          "type": "string"
                        },
                        "content_type": {
                          "type": "string"
                        },
                        "content_id": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    }
                  }
                },
                "required": [
                  "from",
                  "to",
                  "subject"
                ]
              },
              "example": {
                "from": "Sample sender <sender@example.test>",
                "to": [
                  "reader@example.test"
                ],
                "subject": "A sample subject",
                "html": "<p>The message body, in HTML.</p>",
                "text": "The message body, in plain text."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-hermesmail-monthly-quota": {
                "description": "Emails the team has used in the current cycle.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-hermesmail-daily-quota": {
                "description": "Emails the team has used today; sent only when its plan has a daily cap.",
                "schema": {
                  "type": "integer"
                }
              },
              "idempotent-replayed": {
                "description": "true when this is the stored answer to an earlier request with the same Idempotency-Key.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error, invalid_idempotency_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_idempotency_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "Error: invalid_idempotent_request, concurrent_idempotent_requests.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 409
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "invalid_idempotent_request",
                        "concurrent_idempotent_requests"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, missing_required_field, invalid_attachment.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "missing_required_field",
                        "invalid_attachment"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded, daily_quota_exceeded, monthly_quota_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded",
                        "daily_quota_exceeded",
                        "monthly_quota_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "500": {
            "description": "Error: application_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 500
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "application_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "503": {
            "description": "Error: service_unavailable.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 503
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "service_unavailable"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listEmails",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "list"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "object": {
                            "type": "string",
                            "const": "email"
                          },
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "message_id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "to": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "from": {
                            "type": "string"
                          },
                          "created_at": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                          },
                          "subject": {
                            "type": "string"
                          },
                          "bcc": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "cc": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "reply_to": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "last_event": {
                            "type": "string",
                            "enum": [
                              "bounced",
                              "canceled",
                              "clicked",
                              "complained",
                              "delivered",
                              "delivery_delayed",
                              "failed",
                              "opened",
                              "queued",
                              "scheduled",
                              "sent",
                              "suppressed"
                            ]
                          },
                          "scheduled_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "value"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "object",
                          "id",
                          "message_id",
                          "to",
                          "from",
                          "created_at",
                          "subject",
                          "bcc",
                          "cc",
                          "reply_to",
                          "last_event",
                          "scheduled_at",
                          "tags"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "object",
                    "has_more",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/email": {
      "post": {
        "operationId": "sendEmailAlias",
        "deprecated": true,
        "x-hidden-from-docs": true,
        "security": [
          {
            "apiKey": [
              "sending_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send a unique value to make a retry safe: for a day, a repeat of this request answers with the original outcome.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "template": {},
                  "topic_id": {},
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "subject": {
                    "type": "string"
                  },
                  "bcc": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "cc": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "reply_to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "html": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  },
                  "headers": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "scheduled_at": {
                    "type": "string"
                  },
                  "attachments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "content": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 255
                              }
                            }
                          ]
                        },
                        "path": {
                          "type": "string"
                        },
                        "filename": {
                          "type": "string"
                        },
                        "content_type": {
                          "type": "string"
                        },
                        "content_id": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    }
                  }
                },
                "required": [
                  "from",
                  "to",
                  "subject"
                ]
              },
              "example": {
                "from": "Sample sender <sender@example.test>",
                "to": [
                  "reader@example.test"
                ],
                "subject": "A sample subject",
                "html": "<p>The message body, in HTML.</p>",
                "text": "The message body, in plain text."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-hermesmail-monthly-quota": {
                "description": "Emails the team has used in the current cycle.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-hermesmail-daily-quota": {
                "description": "Emails the team has used today; sent only when its plan has a daily cap.",
                "schema": {
                  "type": "integer"
                }
              },
              "idempotent-replayed": {
                "description": "true when this is the stored answer to an earlier request with the same Idempotency-Key.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error, invalid_idempotency_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_idempotency_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "Error: invalid_idempotent_request, concurrent_idempotent_requests.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 409
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "invalid_idempotent_request",
                        "concurrent_idempotent_requests"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, missing_required_field, invalid_attachment.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "missing_required_field",
                        "invalid_attachment"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded, daily_quota_exceeded, monthly_quota_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded",
                        "daily_quota_exceeded",
                        "monthly_quota_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "500": {
            "description": "Error: application_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 500
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "application_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "503": {
            "description": "Error: service_unavailable.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 503
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "service_unavailable"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/emails/sending": {
      "post": {
        "operationId": "sendEmailsSendingAlias",
        "deprecated": true,
        "x-hidden-from-docs": true,
        "security": [
          {
            "apiKey": [
              "sending_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send a unique value to make a retry safe: for a day, a repeat of this request answers with the original outcome.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "template": {},
                  "topic_id": {},
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "subject": {
                    "type": "string"
                  },
                  "bcc": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "cc": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "reply_to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "html": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  },
                  "headers": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "scheduled_at": {
                    "type": "string"
                  },
                  "attachments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "content": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 255
                              }
                            }
                          ]
                        },
                        "path": {
                          "type": "string"
                        },
                        "filename": {
                          "type": "string"
                        },
                        "content_type": {
                          "type": "string"
                        },
                        "content_id": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    }
                  }
                },
                "required": [
                  "from",
                  "to",
                  "subject"
                ]
              },
              "example": {
                "from": "Sample sender <sender@example.test>",
                "to": [
                  "reader@example.test"
                ],
                "subject": "A sample subject",
                "html": "<p>The message body, in HTML.</p>",
                "text": "The message body, in plain text."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-hermesmail-monthly-quota": {
                "description": "Emails the team has used in the current cycle.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-hermesmail-daily-quota": {
                "description": "Emails the team has used today; sent only when its plan has a daily cap.",
                "schema": {
                  "type": "integer"
                }
              },
              "idempotent-replayed": {
                "description": "true when this is the stored answer to an earlier request with the same Idempotency-Key.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error, invalid_idempotency_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_idempotency_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "Error: invalid_idempotent_request, concurrent_idempotent_requests.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 409
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "invalid_idempotent_request",
                        "concurrent_idempotent_requests"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, missing_required_field, invalid_attachment.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "missing_required_field",
                        "invalid_attachment"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded, daily_quota_exceeded, monthly_quota_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded",
                        "daily_quota_exceeded",
                        "monthly_quota_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "500": {
            "description": "Error: application_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 500
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "application_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "503": {
            "description": "Error: service_unavailable.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 503
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "service_unavailable"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/email/sending": {
      "post": {
        "operationId": "sendEmailSendingAlias",
        "deprecated": true,
        "x-hidden-from-docs": true,
        "security": [
          {
            "apiKey": [
              "sending_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send a unique value to make a retry safe: for a day, a repeat of this request answers with the original outcome.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "template": {},
                  "topic_id": {},
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "subject": {
                    "type": "string"
                  },
                  "bcc": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "cc": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "reply_to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "html": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  },
                  "headers": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "scheduled_at": {
                    "type": "string"
                  },
                  "attachments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "content": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 255
                              }
                            }
                          ]
                        },
                        "path": {
                          "type": "string"
                        },
                        "filename": {
                          "type": "string"
                        },
                        "content_type": {
                          "type": "string"
                        },
                        "content_id": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    }
                  }
                },
                "required": [
                  "from",
                  "to",
                  "subject"
                ]
              },
              "example": {
                "from": "Sample sender <sender@example.test>",
                "to": [
                  "reader@example.test"
                ],
                "subject": "A sample subject",
                "html": "<p>The message body, in HTML.</p>",
                "text": "The message body, in plain text."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-hermesmail-monthly-quota": {
                "description": "Emails the team has used in the current cycle.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-hermesmail-daily-quota": {
                "description": "Emails the team has used today; sent only when its plan has a daily cap.",
                "schema": {
                  "type": "integer"
                }
              },
              "idempotent-replayed": {
                "description": "true when this is the stored answer to an earlier request with the same Idempotency-Key.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error, invalid_idempotency_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_idempotency_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "Error: invalid_idempotent_request, concurrent_idempotent_requests.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 409
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "invalid_idempotent_request",
                        "concurrent_idempotent_requests"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, missing_required_field, invalid_attachment.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "missing_required_field",
                        "invalid_attachment"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded, daily_quota_exceeded, monthly_quota_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded",
                        "daily_quota_exceeded",
                        "monthly_quota_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "500": {
            "description": "Error: application_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 500
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "application_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "503": {
            "description": "Error: service_unavailable.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 503
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "service_unavailable"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/emails/{email_id}": {
      "get": {
        "operationId": "getEmail",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "email_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "email"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "message_id": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "to": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "from": {
                      "type": "string"
                    },
                    "created_at": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "html": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "text": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "bcc": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "cc": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "reply_to": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "last_event": {
                      "type": "string",
                      "enum": [
                        "bounced",
                        "canceled",
                        "clicked",
                        "complained",
                        "delivered",
                        "delivery_delayed",
                        "failed",
                        "opened",
                        "queued",
                        "scheduled",
                        "sent",
                        "suppressed"
                      ]
                    },
                    "scheduled_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "message_id",
                    "to",
                    "from",
                    "created_at",
                    "subject",
                    "html",
                    "text",
                    "bcc",
                    "cc",
                    "reply_to",
                    "last_event",
                    "scheduled_at",
                    "tags"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateEmail",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "email_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "type": "string"
                  }
                },
                "required": [
                  "scheduled_at"
                ]
              },
              "example": {
                "scheduled_at": "in 1 hour"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "email"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "object",
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "Error: resource_locked.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 409
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "resource_locked"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, missing_required_field, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "missing_required_field",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/emails/metrics": {
      "get": {
        "operationId": "getEmailMetrics",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "timezone",
            "in": "query",
            "required": false,
            "schema": {
              "default": "UTC",
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "granularity",
            "in": "query",
            "required": false,
            "schema": {
              "default": "daily",
              "type": "string",
              "enum": [
                "hourly",
                "daily",
                "weekly",
                "monthly"
              ]
            }
          },
          {
            "name": "metrics",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "received",
                  "delivered",
                  "complained",
                  "suppressed",
                  "bounced",
                  "bounced_transient",
                  "bounced_permanent",
                  "bounced_undetermined",
                  "opened",
                  "clicked",
                  "unsubscribed",
                  "delivery_delayed",
                  "failed",
                  "sent",
                  "unique_opened",
                  "unique_clicked",
                  "delivery_rate",
                  "open_rate",
                  "click_rate",
                  "bounce_rate",
                  "complaint_rate",
                  "unsubscribe_rate"
                ]
              }
            }
          },
          {
            "name": "dimensions",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "period",
                  "domain",
                  "email",
                  "broadcast"
                ]
              }
            }
          },
          {
            "name": "domain_id",
            "in": "query",
            "required": false,
            "schema": {
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            }
          },
          {
            "name": "email_id",
            "in": "query",
            "required": false,
            "schema": {
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            }
          },
          {
            "name": "broadcast_id",
            "in": "query",
            "required": false,
            "schema": {
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "metrics"
                    },
                    "start_date": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                    },
                    "end_date": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                    },
                    "metrics": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "received",
                          "delivered",
                          "complained",
                          "suppressed",
                          "bounced",
                          "bounced_transient",
                          "bounced_permanent",
                          "bounced_undetermined",
                          "opened",
                          "clicked",
                          "unsubscribed",
                          "delivery_delayed",
                          "failed",
                          "sent",
                          "unique_opened",
                          "unique_clicked",
                          "delivery_rate",
                          "open_rate",
                          "click_rate",
                          "bounce_rate",
                          "complaint_rate",
                          "unsubscribe_rate"
                        ]
                      }
                    },
                    "dimensions": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "period",
                          "domain"
                        ]
                      }
                    },
                    "granularity": {
                      "type": "string",
                      "enum": [
                        "hourly",
                        "daily",
                        "weekly",
                        "monthly"
                      ]
                    },
                    "totals": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "period": {
                            "type": "string"
                          },
                          "domain_id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "domain_name": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": {
                          "type": "number"
                        }
                      }
                    }
                  },
                  "required": [
                    "object",
                    "start_date",
                    "end_date",
                    "metrics",
                    "dimensions",
                    "granularity",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/emails/{email_id}/cancel": {
      "post": {
        "operationId": "cancelEmail",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "email_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "email"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "object",
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "Error: resource_locked.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 409
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "resource_locked"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/emails/batch": {
      "post": {
        "operationId": "sendBatch",
        "security": [
          {
            "apiKey": [
              "sending_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send a unique value to make a retry safe: for a day, a repeat of this request answers with the original outcome.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "minItems": 1,
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "template": {},
                    "topic_id": {},
                    "from": {
                      "type": "string"
                    },
                    "to": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ]
                    },
                    "subject": {
                      "type": "string"
                    },
                    "bcc": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ]
                    },
                    "cc": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ]
                    },
                    "reply_to": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ]
                    },
                    "html": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "headers": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "scheduled_at": {
                      "type": "string"
                    },
                    "attachments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "content": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 255
                                }
                              }
                            ]
                          },
                          "path": {
                            "type": "string"
                          },
                          "filename": {
                            "type": "string"
                          },
                          "content_type": {
                            "type": "string"
                          },
                          "content_id": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      }
                    }
                  },
                  "required": [
                    "from",
                    "to",
                    "subject"
                  ]
                }
              },
              "example": [
                {
                  "from": "Sample sender <sender@example.test>",
                  "to": [
                    "reader@example.test"
                  ],
                  "subject": "A sample subject",
                  "html": "<p>The message body, in HTML.</p>",
                  "text": "The message body, in plain text."
                },
                {
                  "from": "Sample sender <sender@example.test>",
                  "to": [
                    "second.reader@example.test"
                  ],
                  "subject": "A sample subject",
                  "html": "<p>The message body, in HTML.</p>",
                  "text": "The message body, in plain text."
                }
              ]
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-hermesmail-monthly-quota": {
                "description": "Emails the team has used in the current cycle.",
                "schema": {
                  "type": "integer"
                }
              },
              "x-hermesmail-daily-quota": {
                "description": "Emails the team has used today; sent only when its plan has a daily cap.",
                "schema": {
                  "type": "integer"
                }
              },
              "idempotent-replayed": {
                "description": "true when this is the stored answer to an earlier request with the same Idempotency-Key.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "index": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "message": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "index",
                          "message"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error, invalid_idempotency_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_idempotency_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "Error: invalid_idempotent_request, concurrent_idempotent_requests.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 409
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "invalid_idempotent_request",
                        "concurrent_idempotent_requests"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded, daily_quota_exceeded, monthly_quota_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded",
                        "daily_quota_exceeded",
                        "monthly_quota_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "500": {
            "description": "Error: application_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 500
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "application_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "503": {
            "description": "Error: service_unavailable.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 503
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "service_unavailable"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/emails/{email_id}/attachments": {
      "get": {
        "operationId": "listAttachments",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "email_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "list"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "filename": {
                            "type": "string"
                          },
                          "content_type": {
                            "type": "string"
                          },
                          "content_id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "content_disposition": {
                            "type": "string",
                            "enum": [
                              "inline",
                              "attachment"
                            ]
                          },
                          "download_url": {
                            "type": "string"
                          },
                          "expires_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                          },
                          "size": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "filename",
                          "content_type",
                          "content_id",
                          "content_disposition",
                          "download_url",
                          "expires_at",
                          "size"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "object",
                    "has_more",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "500": {
            "description": "Error: application_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 500
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "application_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "503": {
            "description": "Error: service_unavailable.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 503
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "service_unavailable"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/emails/{email_id}/attachments/{attachment_id}": {
      "get": {
        "operationId": "getAttachment",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "email_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "attachment"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "filename": {
                      "type": "string"
                    },
                    "content_type": {
                      "type": "string"
                    },
                    "content_id": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "content_disposition": {
                      "type": "string",
                      "enum": [
                        "inline",
                        "attachment"
                      ]
                    },
                    "download_url": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                    },
                    "size": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "filename",
                    "content_type",
                    "content_id",
                    "content_disposition",
                    "download_url",
                    "expires_at",
                    "size"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "500": {
            "description": "Error: application_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 500
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "application_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "503": {
            "description": "Error: service_unavailable.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 503
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "service_unavailable"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/logs": {
      "get": {
        "operationId": "listLogs",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "list"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "created_at": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                          },
                          "endpoint": {
                            "type": "string"
                          },
                          "method": {
                            "type": "string",
                            "enum": [
                              "GET",
                              "POST",
                              "PUT",
                              "DELETE",
                              "PATCH",
                              "OPTIONS"
                            ]
                          },
                          "response_status": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "user_agent": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created_at",
                          "endpoint",
                          "method",
                          "response_status",
                          "user_agent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "object",
                    "has_more",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/logs/{log_id}": {
      "get": {
        "operationId": "getLog",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "log_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "log"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "created_at": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                    },
                    "endpoint": {
                      "type": "string"
                    },
                    "method": {
                      "type": "string",
                      "enum": [
                        "GET",
                        "POST",
                        "PUT",
                        "DELETE",
                        "PATCH",
                        "OPTIONS"
                      ]
                    },
                    "response_status": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "user_agent": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "request_body": {
                      "x-hermesmail-opaque": "a request or response body as the log stored it, redacted (API-052): null when absent, an array for a batch, or the JSON object"
                    },
                    "response_body": {
                      "x-hermesmail-opaque": "a request or response body as the log stored it, redacted (API-052): null when absent, an array for a batch, or the JSON object"
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "created_at",
                    "endpoint",
                    "method",
                    "response_status",
                    "user_agent",
                    "request_body",
                    "response_body"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/suppressions": {
      "post": {
        "operationId": "addSuppression",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ]
              },
              "example": {
                "email": "reader@example.test"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "suppression"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "object",
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, missing_required_field.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "missing_required_field"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listSuppressions",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "bounce",
                "complaint",
                "manual"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "list"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "email": {
                            "type": "string"
                          },
                          "origin": {
                            "type": "string",
                            "enum": [
                              "bounce",
                              "complaint",
                              "manual"
                            ]
                          },
                          "source_id": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                          }
                        },
                        "required": [
                          "id",
                          "email",
                          "origin",
                          "source_id",
                          "created_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "object",
                    "has_more",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/suppressions/batch/add": {
      "post": {
        "operationId": "batchAddSuppressions",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "emails": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "emails"
                ]
              },
              "example": {
                "emails": [
                  "reader@example.test",
                  "second.reader@example.test"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "object": {
                            "type": "string",
                            "const": "suppression"
                          },
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        },
                        "required": [
                          "object",
                          "id"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, missing_required_field.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "missing_required_field"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/suppressions/batch/remove": {
      "post": {
        "operationId": "batchRemoveSuppressions",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "emails": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "ids": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "example": {
                "emails": [
                  "reader@example.test"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "object": {
                            "type": "string",
                            "const": "suppression"
                          },
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "deleted": {
                            "type": "boolean",
                            "const": true
                          }
                        },
                        "required": [
                          "object",
                          "id",
                          "deleted"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/suppressions/{suppression}": {
      "get": {
        "operationId": "getSuppression",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "suppression",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "suppression"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "email": {
                      "type": "string"
                    },
                    "origin": {
                      "type": "string",
                      "enum": [
                        "bounce",
                        "complaint",
                        "manual"
                      ]
                    },
                    "source_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "email",
                    "origin",
                    "source_id",
                    "created_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeSuppression",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "suppression",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "suppression"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/usage": {
      "get": {
        "operationId": "getUsage",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "usage"
                    },
                    "emails": {
                      "type": "object",
                      "properties": {
                        "daily": {
                          "type": "object",
                          "properties": {
                            "used": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "limit": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sent": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "received": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "resets_at": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                            }
                          },
                          "required": [
                            "used",
                            "limit",
                            "sent",
                            "received",
                            "resets_at"
                          ],
                          "additionalProperties": false
                        },
                        "monthly": {
                          "type": "object",
                          "properties": {
                            "used": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "limit": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sent": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "received": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "resets_at": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                            }
                          },
                          "required": [
                            "used",
                            "limit",
                            "sent",
                            "received",
                            "resets_at"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "daily",
                        "monthly"
                      ],
                      "additionalProperties": false
                    },
                    "contacts": {
                      "type": "object",
                      "properties": {
                        "used": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "limit": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "used",
                        "limit"
                      ],
                      "additionalProperties": false
                    },
                    "segments": {
                      "type": "object",
                      "properties": {
                        "used": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "limit": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "used",
                        "limit"
                      ],
                      "additionalProperties": false
                    },
                    "broadcasts": {
                      "type": "object",
                      "properties": {
                        "used": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "limit": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "used",
                        "limit"
                      ],
                      "additionalProperties": false
                    },
                    "ai_credits": {
                      "type": "object",
                      "properties": {
                        "used": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "limit": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "next_increase_at": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "used",
                        "limit",
                        "next_increase_at"
                      ],
                      "additionalProperties": false
                    },
                    "automation_runs": {
                      "type": "object",
                      "properties": {
                        "used": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "limit": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "resets_at": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                        }
                      },
                      "required": [
                        "used",
                        "limit",
                        "resets_at"
                      ],
                      "additionalProperties": false
                    },
                    "domains": {
                      "type": "object",
                      "properties": {
                        "used": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "limit": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "used",
                        "limit"
                      ],
                      "additionalProperties": false
                    },
                    "rate_limit": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "duration": {
                          "type": "string",
                          "const": "1000ms"
                        }
                      },
                      "required": [
                        "limit",
                        "duration"
                      ],
                      "additionalProperties": false
                    },
                    "domain_checks": {
                      "type": "object",
                      "properties": {
                        "used": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "limit": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "resets_at": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                        }
                      },
                      "required": [
                        "used",
                        "limit",
                        "resets_at"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "object",
                    "emails",
                    "contacts",
                    "segments",
                    "broadcasts",
                    "ai_credits",
                    "automation_runs",
                    "domains",
                    "rate_limit",
                    "domain_checks"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/webhooks": {
      "post": {
        "operationId": "createWebhook",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "endpoint": {
                    "type": "string"
                  },
                  "events": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "endpoint",
                  "events"
                ]
              },
              "example": {
                "endpoint": "https://hooks.example.test/webhooks",
                "events": [
                  "email.sent",
                  "email.delivered",
                  "email.bounced"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "webhook"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "signing_secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "signing_secret"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, missing_required_field.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "missing_required_field"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listWebhooks",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "list"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "endpoint": {
                            "type": "string"
                          },
                          "events": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "enabled",
                              "disabled"
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                          }
                        },
                        "required": [
                          "id",
                          "endpoint",
                          "events",
                          "status",
                          "created_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "object",
                    "has_more",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/{webhook_id}": {
      "get": {
        "operationId": "getWebhook",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "webhook"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "endpoint": {
                      "type": "string"
                    },
                    "events": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "enabled",
                        "disabled"
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+00$"
                    },
                    "signing_secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "endpoint",
                    "events",
                    "status",
                    "created_at",
                    "signing_secret"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateWebhook",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "endpoint": {
                    "type": "string"
                  },
                  "events": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "enabled",
                      "disabled"
                    ]
                  }
                }
              },
              "example": {
                "events": [
                  "email.delivered",
                  "email.bounced"
                ],
                "status": "enabled"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "webhook"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "object",
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeWebhook",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "webhook"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/{webhook_id}/signing-secret/rotate": {
      "post": {
        "operationId": "rotateWebhookSigningSecret",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "webhook"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "signing_secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "signing_secret"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/{webhook_id}/events": {
      "get": {
        "operationId": "listWebhookEvents",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "list"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^msg_[0-9A-Za-z]{27}$"
                          },
                          "type": {
                            "type": "string"
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "attempting",
                              "success",
                              "failed"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "created_at",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "object",
                    "has_more",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/{webhook_id}/events/{event_id}": {
      "get": {
        "operationId": "getWebhookEvent",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^msg_[0-9A-Za-z]{27}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "webhook_event"
                    },
                    "id": {
                      "type": "string",
                      "pattern": "^msg_[0-9A-Za-z]{27}$"
                    },
                    "type": {
                      "type": "string"
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "attempting",
                        "success",
                        "failed"
                      ]
                    },
                    "next_attempt_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "payload": {
                      "x-hermesmail-opaque": "the stored webhook body, returned as it was sent"
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "type",
                    "created_at",
                    "status",
                    "next_attempt_at",
                    "payload"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/{webhook_id}/events/{event_id}/attempts": {
      "get": {
        "operationId": "listWebhookEventAttempts",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^msg_[0-9A-Za-z]{27}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "list"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^atmpt_[0-9A-Za-z]{27}$"
                          },
                          "http_status_code": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "response": {
                            "type": "string"
                          },
                          "sent_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
                          }
                        },
                        "required": [
                          "id",
                          "http_status_code",
                          "response",
                          "sent_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "object",
                    "has_more",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/{webhook_id}/events/{event_id}/replay": {
      "post": {
        "operationId": "replayWebhookEvent",
        "security": [
          {
            "apiKey": [
              "full_access"
            ]
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^msg_[0-9A-Za-z]{27}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "webhook_event"
                    },
                    "id": {
                      "type": "string",
                      "pattern": "^msg_[0-9A-Za-z]{27}$"
                    }
                  },
                  "required": [
                    "object",
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 400
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error: missing_api_key, validation_error, restricted_api_key.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 401
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "missing_api_key",
                        "validation_error",
                        "restricted_api_key"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Error: validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 403
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "restricted_api_key",
                        "suspended_api_key",
                        "terms_acceptance_required"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Error: not_found.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 404
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "not_found"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "413": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 413
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "Error: validation_error.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 415
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Error: validation_error, invalid_parameter.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 422
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "validation_error",
                        "invalid_parameter"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Error: rate_limit_exceeded.",
            "headers": {
              "x-request-id": {
                "description": "The id of this request, which its request log row carries. Quote it when asking for help.",
                "schema": {
                  "type": "string"
                }
              },
              "ratelimit-limit": {
                "description": "Requests the team may make in each window.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "Requests left in the current window, never below 0.",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "Whole seconds until the current window ends, at least 1.",
                "schema": {
                  "type": "integer"
                }
              },
              "retry-after": {
                "description": "Whole seconds to wait before sending the request again.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "const": 429
                    },
                    "name": {
                      "type": "string",
                      "enum": [
                        "rate_limit_exceeded"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statusCode",
                    "name",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorEnvelope": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599
          },
          "name": {
            "type": "string",
            "enum": [
              "invalid_idempotency_key",
              "validation_error",
              "missing_api_key",
              "restricted_api_key",
              "email_above_quota",
              "invalid_permission",
              "suspended_api_key",
              "not_found",
              "method_not_allowed",
              "concurrent_idempotent_requests",
              "invalid_idempotent_request",
              "resource_locked",
              "forge_not_enabled",
              "forge_unavailable",
              "invalid_attachment",
              "invalid_parameter",
              "missing_required_field",
              "missing_required_parameter",
              "return_path_unavailable",
              "daily_quota_exceeded",
              "monthly_quota_exceeded",
              "rate_limit_exceeded",
              "application_error",
              "dns_lookup_failed",
              "service_unavailable",
              "terms_acceptance_required",
              "domain_check_quota_exceeded"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "statusCode",
          "name",
          "message"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "A Hermesmail API key. Every key begins hm_, then an eight-character lookup, an underscore and the secret."
      }
    }
  }
}
