{
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "description": "An Envello API key, `env_live_...` or `env_test_...`.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Transactional email API, hosted in the EU. Generated from the API's own route schemas: run `pnpm --filter @envello/api docs:openapi` to regenerate.",
    "title": "Envello API",
    "version": "1"
  },
  "openapi": "3.0.3",
  "paths": {
    "/broadcast/settings": {
      "get": {
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Whether the broadcast stream is on, paused, or unavailable for this account.",
        "tags": [
          "Emails"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/broadcast/unsubscribes": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "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": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List recipients who unsubscribed from broadcast mail.",
        "tags": [
          "Suppressions"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/broadcast/unsubscribes/{email}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "email",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Remove one broadcast unsubscribe.",
        "tags": [
          "Suppressions"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/dmarc/summary": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "domain",
            "required": true,
            "schema": {
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "default": 30,
              "maximum": 365,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Aggregated DMARC report results for one domain.",
        "tags": [
          "Logs and analytics"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/domains": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "domains": {
                      "items": {
                        "properties": {
                          "blocklistStatus": {
                            "properties": {
                              "checkedAt": {
                                "anyOf": [
                                  {
                                    "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+)?(?:Z))$",
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "listed": {
                                "type": "boolean"
                              },
                              "listedOn": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              }
                            },
                            "required": [
                              "listed",
                              "listedOn",
                              "checkedAt"
                            ],
                            "type": "object"
                          },
                          "dmarc": {
                            "properties": {
                              "notes": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "record": {
                                "properties": {
                                  "host": {
                                    "type": "string"
                                  },
                                  "priority": {
                                    "maximum": 9007199254740991,
                                    "minimum": -9007199254740991,
                                    "type": "integer"
                                  },
                                  "purpose": {
                                    "enum": [
                                      "dkim",
                                      "spf",
                                      "return-path-mx",
                                      "return-path-spf",
                                      "dmarc"
                                    ],
                                    "type": "string"
                                  },
                                  "type": {
                                    "enum": [
                                      "CNAME",
                                      "TXT",
                                      "MX"
                                    ],
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "type",
                                  "host",
                                  "value",
                                  "purpose"
                                ],
                                "type": "object"
                              }
                            },
                            "required": [
                              "record",
                              "notes"
                            ],
                            "type": "object"
                          },
                          "dnsRecords": {
                            "items": {
                              "properties": {
                                "host": {
                                  "type": "string"
                                },
                                "priority": {
                                  "maximum": 9007199254740991,
                                  "minimum": -9007199254740991,
                                  "type": "integer"
                                },
                                "purpose": {
                                  "enum": [
                                    "dkim",
                                    "spf",
                                    "return-path-mx",
                                    "return-path-spf",
                                    "dmarc"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "CNAME",
                                    "TXT",
                                    "MX"
                                  ],
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                },
                                "verified": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "type",
                                "host",
                                "value",
                                "purpose",
                                "verified"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "domain": {
                            "properties": {
                              "accountId": {
                                "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": "string"
                              },
                              "createdAt": {
                                "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+)?(?:Z))$",
                                "type": "string"
                              },
                              "dkimSelector": {
                                "type": "string"
                              },
                              "dkimVerifiedAt": {
                                "anyOf": [
                                  {
                                    "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+)?(?:Z))$",
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "domain": {
                                "maxLength": 253,
                                "minLength": 3,
                                "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                                "type": "string"
                              },
                              "id": {
                                "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": "string"
                              },
                              "lastCheckedAt": {
                                "anyOf": [
                                  {
                                    "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+)?(?:Z))$",
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "returnPathSubdomain": {
                                "anyOf": [
                                  {
                                    "maxLength": 253,
                                    "minLength": 3,
                                    "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "returnPathVerifiedAt": {
                                "anyOf": [
                                  {
                                    "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+)?(?:Z))$",
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sendingSubdomain": {
                                "maxLength": 253,
                                "minLength": 3,
                                "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                                "type": "string"
                              },
                              "spfVerifiedAt": {
                                "anyOf": [
                                  {
                                    "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+)?(?:Z))$",
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "enum": [
                                  "pending",
                                  "verified",
                                  "failed"
                                ],
                                "type": "string"
                              },
                              "updatedAt": {
                                "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+)?(?:Z))$",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "accountId",
                              "domain",
                              "sendingSubdomain",
                              "returnPathSubdomain",
                              "dkimSelector",
                              "status",
                              "dkimVerifiedAt",
                              "spfVerifiedAt",
                              "returnPathVerifiedAt",
                              "lastCheckedAt",
                              "createdAt",
                              "updatedAt"
                            ],
                            "type": "object"
                          }
                        },
                        "required": [
                          "domain",
                          "dnsRecords",
                          "dmarc"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "limit": {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "domains",
                    "limit"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List sending domains.",
        "tags": [
          "Domains"
        ],
        "x-envello-access": "full_access_live",
        "x-envello-sandbox": true
      },
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "domain": {
                    "maxLength": 253,
                    "minLength": 3,
                    "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                    "type": "string"
                  },
                  "returnPathSubdomain": {
                    "maxLength": 253,
                    "minLength": 3,
                    "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                    "type": "string"
                  },
                  "sendingSubdomain": {
                    "maxLength": 253,
                    "minLength": 3,
                    "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                    "type": "string"
                  }
                },
                "required": [
                  "domain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "blocklistStatus": {
                      "properties": {
                        "checkedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "listed": {
                          "type": "boolean"
                        },
                        "listedOn": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "listed",
                        "listedOn",
                        "checkedAt"
                      ],
                      "type": "object"
                    },
                    "dmarc": {
                      "properties": {
                        "notes": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "record": {
                          "properties": {
                            "host": {
                              "type": "string"
                            },
                            "priority": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "purpose": {
                              "enum": [
                                "dkim",
                                "spf",
                                "return-path-mx",
                                "return-path-spf",
                                "dmarc"
                              ],
                              "type": "string"
                            },
                            "type": {
                              "enum": [
                                "CNAME",
                                "TXT",
                                "MX"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "host",
                            "value",
                            "purpose"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "record",
                        "notes"
                      ],
                      "type": "object"
                    },
                    "dnsRecords": {
                      "items": {
                        "properties": {
                          "host": {
                            "type": "string"
                          },
                          "priority": {
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "purpose": {
                            "enum": [
                              "dkim",
                              "spf",
                              "return-path-mx",
                              "return-path-spf",
                              "dmarc"
                            ],
                            "type": "string"
                          },
                          "type": {
                            "enum": [
                              "CNAME",
                              "TXT",
                              "MX"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          },
                          "verified": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "type",
                          "host",
                          "value",
                          "purpose",
                          "verified"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "domain": {
                      "properties": {
                        "accountId": {
                          "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": "string"
                        },
                        "createdAt": {
                          "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+)?(?:Z))$",
                          "type": "string"
                        },
                        "dkimSelector": {
                          "type": "string"
                        },
                        "dkimVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "domain": {
                          "maxLength": 253,
                          "minLength": 3,
                          "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                          "type": "string"
                        },
                        "id": {
                          "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": "string"
                        },
                        "lastCheckedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "returnPathSubdomain": {
                          "anyOf": [
                            {
                              "maxLength": 253,
                              "minLength": 3,
                              "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "returnPathVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sendingSubdomain": {
                          "maxLength": 253,
                          "minLength": 3,
                          "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                          "type": "string"
                        },
                        "spfVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "pending",
                            "verified",
                            "failed"
                          ],
                          "type": "string"
                        },
                        "updatedAt": {
                          "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+)?(?:Z))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "accountId",
                        "domain",
                        "sendingSubdomain",
                        "returnPathSubdomain",
                        "dkimSelector",
                        "status",
                        "dkimVerifiedAt",
                        "spfVerifiedAt",
                        "returnPathVerifiedAt",
                        "lastCheckedAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "domain",
                    "dnsRecords",
                    "dmarc"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code": {
                      "enum": [
                        "domain_limit_reached"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Add a sending domain and get its DNS records.",
        "tags": [
          "Domains"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/domains/claim": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "domain": {
                    "maxLength": 253,
                    "minLength": 3,
                    "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                    "type": "string"
                  }
                },
                "required": [
                  "domain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "domain": {
                      "type": "string"
                    },
                    "txtName": {
                      "type": "string"
                    },
                    "txtValue": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "domain",
                    "txtName",
                    "txtValue"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Start claiming a domain another account registered.",
        "tags": [
          "Domains"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/domains/claim/verify": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "domain": {
                    "maxLength": 253,
                    "minLength": 3,
                    "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                    "type": "string"
                  }
                },
                "required": [
                  "domain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Finish a domain claim once the TXT record is live.",
        "tags": [
          "Domains"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/domains/{id}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Remove a sending domain.",
        "tags": [
          "Domains"
        ],
        "x-envello-access": "full_access_live"
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "blocklistStatus": {
                      "properties": {
                        "checkedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "listed": {
                          "type": "boolean"
                        },
                        "listedOn": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "listed",
                        "listedOn",
                        "checkedAt"
                      ],
                      "type": "object"
                    },
                    "dmarc": {
                      "properties": {
                        "notes": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "record": {
                          "properties": {
                            "host": {
                              "type": "string"
                            },
                            "priority": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "purpose": {
                              "enum": [
                                "dkim",
                                "spf",
                                "return-path-mx",
                                "return-path-spf",
                                "dmarc"
                              ],
                              "type": "string"
                            },
                            "type": {
                              "enum": [
                                "CNAME",
                                "TXT",
                                "MX"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "host",
                            "value",
                            "purpose"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "record",
                        "notes"
                      ],
                      "type": "object"
                    },
                    "dnsRecords": {
                      "items": {
                        "properties": {
                          "host": {
                            "type": "string"
                          },
                          "priority": {
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "purpose": {
                            "enum": [
                              "dkim",
                              "spf",
                              "return-path-mx",
                              "return-path-spf",
                              "dmarc"
                            ],
                            "type": "string"
                          },
                          "type": {
                            "enum": [
                              "CNAME",
                              "TXT",
                              "MX"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          },
                          "verified": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "type",
                          "host",
                          "value",
                          "purpose",
                          "verified"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "domain": {
                      "properties": {
                        "accountId": {
                          "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": "string"
                        },
                        "createdAt": {
                          "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+)?(?:Z))$",
                          "type": "string"
                        },
                        "dkimSelector": {
                          "type": "string"
                        },
                        "dkimVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "domain": {
                          "maxLength": 253,
                          "minLength": 3,
                          "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                          "type": "string"
                        },
                        "id": {
                          "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": "string"
                        },
                        "lastCheckedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "returnPathSubdomain": {
                          "anyOf": [
                            {
                              "maxLength": 253,
                              "minLength": 3,
                              "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "returnPathVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sendingSubdomain": {
                          "maxLength": 253,
                          "minLength": 3,
                          "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                          "type": "string"
                        },
                        "spfVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "pending",
                            "verified",
                            "failed"
                          ],
                          "type": "string"
                        },
                        "updatedAt": {
                          "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+)?(?:Z))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "accountId",
                        "domain",
                        "sendingSubdomain",
                        "returnPathSubdomain",
                        "dkimSelector",
                        "status",
                        "dkimVerifiedAt",
                        "spfVerifiedAt",
                        "returnPathVerifiedAt",
                        "lastCheckedAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "domain",
                    "dnsRecords",
                    "dmarc"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Fetch one domain and its DNS record status.",
        "tags": [
          "Domains"
        ],
        "x-envello-access": "full_access_live",
        "x-envello-sandbox": true
      }
    },
    "/domains/{id}/blocklist-check": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "blocklistStatus": {
                      "properties": {
                        "checkedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "listed": {
                          "type": "boolean"
                        },
                        "listedOn": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "listed",
                        "listedOn",
                        "checkedAt"
                      ],
                      "type": "object"
                    },
                    "dmarc": {
                      "properties": {
                        "notes": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "record": {
                          "properties": {
                            "host": {
                              "type": "string"
                            },
                            "priority": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "purpose": {
                              "enum": [
                                "dkim",
                                "spf",
                                "return-path-mx",
                                "return-path-spf",
                                "dmarc"
                              ],
                              "type": "string"
                            },
                            "type": {
                              "enum": [
                                "CNAME",
                                "TXT",
                                "MX"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "host",
                            "value",
                            "purpose"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "record",
                        "notes"
                      ],
                      "type": "object"
                    },
                    "dnsRecords": {
                      "items": {
                        "properties": {
                          "host": {
                            "type": "string"
                          },
                          "priority": {
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "purpose": {
                            "enum": [
                              "dkim",
                              "spf",
                              "return-path-mx",
                              "return-path-spf",
                              "dmarc"
                            ],
                            "type": "string"
                          },
                          "type": {
                            "enum": [
                              "CNAME",
                              "TXT",
                              "MX"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          },
                          "verified": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "type",
                          "host",
                          "value",
                          "purpose",
                          "verified"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "domain": {
                      "properties": {
                        "accountId": {
                          "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": "string"
                        },
                        "createdAt": {
                          "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+)?(?:Z))$",
                          "type": "string"
                        },
                        "dkimSelector": {
                          "type": "string"
                        },
                        "dkimVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "domain": {
                          "maxLength": 253,
                          "minLength": 3,
                          "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                          "type": "string"
                        },
                        "id": {
                          "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": "string"
                        },
                        "lastCheckedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "returnPathSubdomain": {
                          "anyOf": [
                            {
                              "maxLength": 253,
                              "minLength": 3,
                              "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "returnPathVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sendingSubdomain": {
                          "maxLength": 253,
                          "minLength": 3,
                          "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                          "type": "string"
                        },
                        "spfVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "pending",
                            "verified",
                            "failed"
                          ],
                          "type": "string"
                        },
                        "updatedAt": {
                          "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+)?(?:Z))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "accountId",
                        "domain",
                        "sendingSubdomain",
                        "returnPathSubdomain",
                        "dkimSelector",
                        "status",
                        "dkimVerifiedAt",
                        "spfVerifiedAt",
                        "returnPathVerifiedAt",
                        "lastCheckedAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "domain",
                    "dnsRecords",
                    "dmarc"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Check the domain against the monitored blocklists now.",
        "tags": [
          "Domains"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/domains/{id}/return-path": {
      "put": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "returnPathSubdomain": {
                    "maxLength": 253,
                    "minLength": 3,
                    "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                    "type": "string"
                  }
                },
                "required": [
                  "returnPathSubdomain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "blocklistStatus": {
                      "properties": {
                        "checkedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "listed": {
                          "type": "boolean"
                        },
                        "listedOn": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "listed",
                        "listedOn",
                        "checkedAt"
                      ],
                      "type": "object"
                    },
                    "dmarc": {
                      "properties": {
                        "notes": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "record": {
                          "properties": {
                            "host": {
                              "type": "string"
                            },
                            "priority": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "purpose": {
                              "enum": [
                                "dkim",
                                "spf",
                                "return-path-mx",
                                "return-path-spf",
                                "dmarc"
                              ],
                              "type": "string"
                            },
                            "type": {
                              "enum": [
                                "CNAME",
                                "TXT",
                                "MX"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "host",
                            "value",
                            "purpose"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "record",
                        "notes"
                      ],
                      "type": "object"
                    },
                    "dnsRecords": {
                      "items": {
                        "properties": {
                          "host": {
                            "type": "string"
                          },
                          "priority": {
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "purpose": {
                            "enum": [
                              "dkim",
                              "spf",
                              "return-path-mx",
                              "return-path-spf",
                              "dmarc"
                            ],
                            "type": "string"
                          },
                          "type": {
                            "enum": [
                              "CNAME",
                              "TXT",
                              "MX"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          },
                          "verified": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "type",
                          "host",
                          "value",
                          "purpose",
                          "verified"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "domain": {
                      "properties": {
                        "accountId": {
                          "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": "string"
                        },
                        "createdAt": {
                          "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+)?(?:Z))$",
                          "type": "string"
                        },
                        "dkimSelector": {
                          "type": "string"
                        },
                        "dkimVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "domain": {
                          "maxLength": 253,
                          "minLength": 3,
                          "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                          "type": "string"
                        },
                        "id": {
                          "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": "string"
                        },
                        "lastCheckedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "returnPathSubdomain": {
                          "anyOf": [
                            {
                              "maxLength": 253,
                              "minLength": 3,
                              "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "returnPathVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sendingSubdomain": {
                          "maxLength": 253,
                          "minLength": 3,
                          "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                          "type": "string"
                        },
                        "spfVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "pending",
                            "verified",
                            "failed"
                          ],
                          "type": "string"
                        },
                        "updatedAt": {
                          "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+)?(?:Z))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "accountId",
                        "domain",
                        "sendingSubdomain",
                        "returnPathSubdomain",
                        "dkimSelector",
                        "status",
                        "dkimVerifiedAt",
                        "spfVerifiedAt",
                        "returnPathVerifiedAt",
                        "lastCheckedAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "domain",
                    "dnsRecords",
                    "dmarc"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Set a custom return-path (bounce) subdomain.",
        "tags": [
          "Domains"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/domains/{id}/verify": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "blocklistStatus": {
                      "properties": {
                        "checkedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "listed": {
                          "type": "boolean"
                        },
                        "listedOn": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "listed",
                        "listedOn",
                        "checkedAt"
                      ],
                      "type": "object"
                    },
                    "dmarc": {
                      "properties": {
                        "notes": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "record": {
                          "properties": {
                            "host": {
                              "type": "string"
                            },
                            "priority": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "purpose": {
                              "enum": [
                                "dkim",
                                "spf",
                                "return-path-mx",
                                "return-path-spf",
                                "dmarc"
                              ],
                              "type": "string"
                            },
                            "type": {
                              "enum": [
                                "CNAME",
                                "TXT",
                                "MX"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "host",
                            "value",
                            "purpose"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "record",
                        "notes"
                      ],
                      "type": "object"
                    },
                    "dnsRecords": {
                      "items": {
                        "properties": {
                          "host": {
                            "type": "string"
                          },
                          "priority": {
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "purpose": {
                            "enum": [
                              "dkim",
                              "spf",
                              "return-path-mx",
                              "return-path-spf",
                              "dmarc"
                            ],
                            "type": "string"
                          },
                          "type": {
                            "enum": [
                              "CNAME",
                              "TXT",
                              "MX"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          },
                          "verified": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "type",
                          "host",
                          "value",
                          "purpose",
                          "verified"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "domain": {
                      "properties": {
                        "accountId": {
                          "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": "string"
                        },
                        "createdAt": {
                          "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+)?(?:Z))$",
                          "type": "string"
                        },
                        "dkimSelector": {
                          "type": "string"
                        },
                        "dkimVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "domain": {
                          "maxLength": 253,
                          "minLength": 3,
                          "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                          "type": "string"
                        },
                        "id": {
                          "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": "string"
                        },
                        "lastCheckedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "returnPathSubdomain": {
                          "anyOf": [
                            {
                              "maxLength": 253,
                              "minLength": 3,
                              "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "returnPathVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sendingSubdomain": {
                          "maxLength": 253,
                          "minLength": 3,
                          "pattern": "^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))+$",
                          "type": "string"
                        },
                        "spfVerifiedAt": {
                          "anyOf": [
                            {
                              "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+)?(?:Z))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "pending",
                            "verified",
                            "failed"
                          ],
                          "type": "string"
                        },
                        "updatedAt": {
                          "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+)?(?:Z))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "accountId",
                        "domain",
                        "sendingSubdomain",
                        "returnPathSubdomain",
                        "dkimSelector",
                        "status",
                        "dkimVerifiedAt",
                        "spfVerifiedAt",
                        "returnPathVerifiedAt",
                        "lastCheckedAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "domain",
                    "dnsRecords",
                    "dmarc"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Re-check a domain's DNS records now.",
        "tags": [
          "Domains"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/emails": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "queued",
                "scheduled",
                "sent",
                "send_error",
                "canceled"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "tag_name",
            "required": false,
            "schema": {
              "maxLength": 256,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "tag_value",
            "required": false,
            "schema": {
              "maxLength": 256,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "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": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "properties": {
                          "created_at": {
                            "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
                            "type": "string"
                          },
                          "error": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "id": {
                            "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": "string"
                          },
                          "send_at": {
                            "anyOf": [
                              {
                                "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sent_at": {
                            "anyOf": [
                              {
                                "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "enum": [
                              "queued",
                              "scheduled",
                              "sent",
                              "send_error",
                              "canceled"
                            ],
                            "type": "string"
                          },
                          "subject": {
                            "type": "string"
                          },
                          "tags": {
                            "items": {
                              "properties": {
                                "name": {
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "pattern": "^[A-Za-z0-9_-]+$",
                                  "type": "string"
                                },
                                "value": {
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "pattern": "^[A-Za-z0-9_-]+$",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "value"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "to": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "to",
                          "subject",
                          "send_at",
                          "sent_at",
                          "error",
                          "created_at",
                          "tags"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "next_before": {
                      "anyOf": [
                        {
                          "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": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "has_more",
                    "next_before"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List sent emails, newest first.",
        "tags": [
          "Emails"
        ],
        "x-envello-access": "full_access"
      },
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "attachments": {
                    "items": {
                      "anyOf": [
                        {
                          "properties": {
                            "content": {
                              "minLength": 1,
                              "type": "string"
                            },
                            "contentType": {
                              "maxLength": 255,
                              "minLength": 1,
                              "type": "string"
                            },
                            "filename": {
                              "maxLength": 255,
                              "minLength": 1,
                              "type": "string"
                            }
                          },
                          "required": [
                            "filename",
                            "content"
                          ],
                          "type": "object"
                        },
                        {
                          "properties": {
                            "contentType": {
                              "maxLength": 255,
                              "minLength": 1,
                              "type": "string"
                            },
                            "filename": {
                              "maxLength": 255,
                              "minLength": 1,
                              "type": "string"
                            },
                            "url": {
                              "format": "uri",
                              "type": "string"
                            }
                          },
                          "required": [
                            "url"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "maxItems": 10,
                    "type": "array"
                  },
                  "bcc": {
                    "anyOf": [
                      {
                        "maxLength": 320,
                        "minLength": 3,
                        "type": "string"
                      },
                      {
                        "items": {
                          "maxLength": 320,
                          "minLength": 3,
                          "type": "string"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      }
                    ]
                  },
                  "cc": {
                    "anyOf": [
                      {
                        "maxLength": 320,
                        "minLength": 3,
                        "type": "string"
                      },
                      {
                        "items": {
                          "maxLength": 320,
                          "minLength": 3,
                          "type": "string"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      }
                    ]
                  },
                  "from": {
                    "maxLength": 320,
                    "minLength": 3,
                    "type": "string"
                  },
                  "headers": {
                    "additionalProperties": {
                      "maxLength": 2048,
                      "type": "string"
                    },
                    "description": "Up to 50 custom headers. Any X- header except X-SES-* and X-Mailgun-*, plus List-*, In-Reply-To, References, Precedence, Auto-Submitted, Importance, Priority, Keywords, Comments and Feedback-ID. Anything else is a 400.",
                    "propertyNames": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "html": {
                    "type": "string"
                  },
                  "reply_to": {
                    "maxLength": 320,
                    "minLength": 3,
                    "type": "string"
                  },
                  "send_at": {
                    "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
                    "type": "string"
                  },
                  "stream": {
                    "enum": [
                      "transactional",
                      "broadcast"
                    ],
                    "type": "string"
                  },
                  "subject": {
                    "maxLength": 998,
                    "minLength": 1,
                    "type": "string"
                  },
                  "tags": {
                    "items": {
                      "properties": {
                        "name": {
                          "maxLength": 256,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9_-]+$",
                          "type": "string"
                        },
                        "value": {
                          "maxLength": 256,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9_-]+$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ],
                      "type": "object"
                    },
                    "maxItems": 10,
                    "type": "array"
                  },
                  "template_id": {
                    "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": "string"
                  },
                  "text": {
                    "type": "string"
                  },
                  "to": {
                    "anyOf": [
                      {
                        "maxLength": 320,
                        "minLength": 3,
                        "type": "string"
                      },
                      {
                        "items": {
                          "maxLength": 320,
                          "minLength": 3,
                          "type": "string"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      }
                    ]
                  },
                  "variables": {
                    "additionalProperties": {
                      "maxLength": 10000,
                      "type": "string"
                    },
                    "propertyNames": {
                      "maxLength": 64,
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "type": "string"
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "from",
                  "to"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "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": "string"
                    },
                    "status": {
                      "enum": [
                        "queued",
                        "scheduled",
                        "sent",
                        "send_error",
                        "canceled"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Send one email.",
        "tags": [
          "Emails"
        ],
        "x-envello-access": "any_key",
        "x-envello-sandbox": true
      }
    },
    "/emails/batch": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "emails": {
                    "items": {
                      "properties": {
                        "attachments": {
                          "items": {
                            "anyOf": [
                              {
                                "properties": {
                                  "content": {
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "contentType": {
                                    "maxLength": 255,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "filename": {
                                    "maxLength": 255,
                                    "minLength": 1,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "filename",
                                  "content"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "contentType": {
                                    "maxLength": 255,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "filename": {
                                    "maxLength": 255,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "url": {
                                    "format": "uri",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "url"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "maxItems": 10,
                          "type": "array"
                        },
                        "bcc": {
                          "anyOf": [
                            {
                              "maxLength": 320,
                              "minLength": 3,
                              "type": "string"
                            },
                            {
                              "items": {
                                "maxLength": 320,
                                "minLength": 3,
                                "type": "string"
                              },
                              "maxItems": 50,
                              "minItems": 1,
                              "type": "array"
                            }
                          ]
                        },
                        "cc": {
                          "anyOf": [
                            {
                              "maxLength": 320,
                              "minLength": 3,
                              "type": "string"
                            },
                            {
                              "items": {
                                "maxLength": 320,
                                "minLength": 3,
                                "type": "string"
                              },
                              "maxItems": 50,
                              "minItems": 1,
                              "type": "array"
                            }
                          ]
                        },
                        "from": {
                          "maxLength": 320,
                          "minLength": 3,
                          "type": "string"
                        },
                        "headers": {
                          "additionalProperties": {
                            "maxLength": 2048,
                            "type": "string"
                          },
                          "description": "Up to 50 custom headers. Any X- header except X-SES-* and X-Mailgun-*, plus List-*, In-Reply-To, References, Precedence, Auto-Submitted, Importance, Priority, Keywords, Comments and Feedback-ID. Anything else is a 400.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "html": {
                          "type": "string"
                        },
                        "reply_to": {
                          "maxLength": 320,
                          "minLength": 3,
                          "type": "string"
                        },
                        "send_at": {
                          "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
                          "type": "string"
                        },
                        "stream": {
                          "enum": [
                            "transactional",
                            "broadcast"
                          ],
                          "type": "string"
                        },
                        "subject": {
                          "maxLength": 998,
                          "minLength": 1,
                          "type": "string"
                        },
                        "tags": {
                          "items": {
                            "properties": {
                              "name": {
                                "maxLength": 256,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9_-]+$",
                                "type": "string"
                              },
                              "value": {
                                "maxLength": 256,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9_-]+$",
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ],
                            "type": "object"
                          },
                          "maxItems": 10,
                          "type": "array"
                        },
                        "template_id": {
                          "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": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "to": {
                          "anyOf": [
                            {
                              "maxLength": 320,
                              "minLength": 3,
                              "type": "string"
                            },
                            {
                              "items": {
                                "maxLength": 320,
                                "minLength": 3,
                                "type": "string"
                              },
                              "maxItems": 50,
                              "minItems": 1,
                              "type": "array"
                            }
                          ]
                        },
                        "variables": {
                          "additionalProperties": {
                            "maxLength": 10000,
                            "type": "string"
                          },
                          "propertyNames": {
                            "maxLength": 64,
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "type": "string"
                          },
                          "type": "object"
                        }
                      },
                      "required": [
                        "from",
                        "to"
                      ],
                      "type": "object"
                    },
                    "maxItems": 100,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "emails"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "207": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "results": {
                      "items": {
                        "oneOf": [
                          {
                            "properties": {
                              "id": {
                                "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": "string"
                              },
                              "index": {
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "status": {
                                "enum": [
                                  "queued"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "index",
                              "status",
                              "id"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "id": {
                                "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": "string"
                              },
                              "index": {
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "status": {
                                "enum": [
                                  "scheduled"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "index",
                              "status",
                              "id"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "error": {
                                "type": "string"
                              },
                              "index": {
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "status": {
                                "enum": [
                                  "failed"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "index",
                              "status",
                              "error"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "results"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Send up to 100 emails in one request. Failures are reported per item.",
        "tags": [
          "Emails"
        ],
        "x-envello-access": "any_key",
        "x-envello-sandbox": true
      }
    },
    "/emails/validate": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "email": {
                    "maxLength": 320,
                    "minLength": 3,
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "disposable": {
                      "type": "boolean"
                    },
                    "email": {
                      "type": "string"
                    },
                    "mx_found": {
                      "type": "boolean"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "role_account": {
                      "type": "boolean"
                    },
                    "syntax_valid": {
                      "type": "boolean"
                    },
                    "valid": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "email",
                    "valid",
                    "syntax_valid",
                    "disposable",
                    "role_account",
                    "mx_found"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Check an address for syntax, MX records and disposable domains without sending.",
        "tags": [
          "Emails"
        ],
        "x-envello-access": "any_key",
        "x-envello-sandbox": true
      }
    },
    "/emails/{id}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "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": "string"
                    },
                    "status": {
                      "enum": [
                        "canceled"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Cancel a scheduled email before it sends.",
        "tags": [
          "Emails"
        ],
        "x-envello-access": "any_key",
        "x-envello-sandbox": true
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "created_at": {
                      "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
                      "type": "string"
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id": {
                      "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": "string"
                    },
                    "send_at": {
                      "anyOf": [
                        {
                          "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sent_at": {
                      "anyOf": [
                        {
                          "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "queued",
                        "scheduled",
                        "sent",
                        "send_error",
                        "canceled"
                      ],
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "tags": {
                      "items": {
                        "properties": {
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9_-]+$",
                            "type": "string"
                          },
                          "value": {
                            "maxLength": 256,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9_-]+$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "to": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "to",
                    "subject",
                    "send_at",
                    "sent_at",
                    "error",
                    "created_at",
                    "tags"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Fetch one email and its delivery status.",
        "tags": [
          "Emails"
        ],
        "x-envello-access": "any_key",
        "x-envello-sandbox": true
      },
      "patch": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "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": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "send_at": {
                    "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
                    "type": "string"
                  }
                },
                "required": [
                  "send_at"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "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": "string"
                    },
                    "send_at": {
                      "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "queued",
                        "scheduled",
                        "sent",
                        "send_error",
                        "canceled"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "send_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Reschedule a scheduled email.",
        "tags": [
          "Emails"
        ],
        "x-envello-access": "full_access"
      }
    },
    "/emails/{id}/insights": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Deliverability hints for one sent email.",
        "tags": [
          "Emails"
        ],
        "x-envello-access": "full_access"
      }
    },
    "/emails/{id}/share": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "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": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expires_in_hours": {
                    "default": 168,
                    "maximum": 720,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expires_at": {
                      "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "expires_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a read-only share link for one email.",
        "tags": [
          "Emails"
        ],
        "x-envello-access": "full_access"
      }
    },
    "/events/logs": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "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": "string"
            }
          },
          {
            "in": "query",
            "name": "recipient",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "subject",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "delivered",
                "bounce",
                "complaint",
                "reject",
                "open",
                "click"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "domain",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {}
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {}
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "environment",
            "required": false,
            "schema": {
              "enum": [
                "production",
                "test"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "stream",
            "required": false,
            "schema": {
              "enum": [
                "transactional",
                "broadcast"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "accountId": {
                            "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": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "domain": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "emailId": {
                            "anyOf": [
                              {
                                "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": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "eventType": {
                            "type": "string"
                          },
                          "id": {
                            "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": "string"
                          },
                          "messageId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "rawPayload": {},
                          "recipient": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "subject": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "accountId",
                          "emailId",
                          "messageId",
                          "eventType",
                          "recipient",
                          "domain",
                          "subject",
                          "rawPayload",
                          "createdAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Search email event logs.",
        "tags": [
          "Logs and analytics"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/events/summary": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "environment",
            "required": false,
            "schema": {
              "enum": [
                "production",
                "test"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "bounceRatePct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "bounceRateTrendPp": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "complaintRatePct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "deliveryRatePct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "deliveryRateTrendPp": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "sendsThisMonth": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "sendsToday": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "sendsTrendPct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "sendsToday",
                    "sendsThisMonth",
                    "deliveryRatePct",
                    "bounceRatePct",
                    "complaintRatePct",
                    "sendsTrendPct",
                    "deliveryRateTrendPp",
                    "bounceRateTrendPp"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delivery, bounce and complaint totals for a period.",
        "tags": [
          "Logs and analytics"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/events/summary/daily": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "environment",
            "required": false,
            "schema": {
              "enum": [
                "production",
                "test"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "days": {
                      "items": {
                        "properties": {
                          "bounced": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "complained": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "date": {
                            "type": "string"
                          },
                          "delivered": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "date",
                          "delivered",
                          "bounced",
                          "complained"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "days"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "The same totals, one row per day.",
        "tags": [
          "Logs and analytics"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/events/tracking/domains": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "accountId": {
                            "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": "string"
                          },
                          "clickTrackingEnabled": {
                            "type": "boolean"
                          },
                          "domain": {
                            "type": "string"
                          },
                          "domainId": {
                            "anyOf": [
                              {
                                "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": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "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": "string"
                          },
                          "openTrackingEnabled": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "accountId",
                          "domainId",
                          "domain",
                          "openTrackingEnabled",
                          "clickTrackingEnabled"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Open and click tracking settings per domain.",
        "tags": [
          "Logs and analytics"
        ],
        "x-envello-access": "full_access_live"
      },
      "put": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accountId": {
                    "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": "string"
                  },
                  "clickTrackingEnabled": {
                    "type": "boolean"
                  },
                  "domain": {
                    "type": "string"
                  },
                  "domainId": {
                    "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": "string"
                  },
                  "openTrackingEnabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "domain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accountId": {
                      "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": "string"
                    },
                    "clickTrackingEnabled": {
                      "type": "boolean"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "domainId": {
                      "anyOf": [
                        {
                          "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": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "id": {
                      "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": "string"
                    },
                    "openTrackingEnabled": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "accountId",
                    "domainId",
                    "domain",
                    "openTrackingEnabled",
                    "clickTrackingEnabled"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Turn open or click tracking on or off for a domain.",
        "tags": [
          "Logs and analytics"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/inbound/emails": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "domain",
            "required": false,
            "schema": {
              "maxLength": 253,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "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": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List received emails.",
        "tags": [
          "Inbound"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/inbound/emails/{id}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Fetch one received email.",
        "tags": [
          "Inbound"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/inbound/routes": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "accountId": {
                            "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": "string"
                          },
                          "address": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "catchAllAddress": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          },
                          "domainId": {
                            "anyOf": [
                              {
                                "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": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "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": "string"
                          },
                          "token": {
                            "type": "string"
                          },
                          "webhookUrl": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "accountId",
                          "domainId",
                          "domain",
                          "address",
                          "webhookUrl",
                          "token",
                          "catchAllAddress"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List inbound routes.",
        "tags": [
          "Inbound"
        ],
        "x-envello-access": "full_access_live"
      },
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accountId": {
                    "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": "string"
                  },
                  "address": {
                    "minLength": 1,
                    "pattern": "^[a-z0-9._%+-]+$",
                    "type": "string"
                  },
                  "domain": {
                    "type": "string"
                  },
                  "domainId": {
                    "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": "string"
                  },
                  "webhookUrl": {
                    "format": "uri",
                    "type": "string"
                  }
                },
                "required": [
                  "domain",
                  "webhookUrl"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accountId": {
                      "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": "string"
                    },
                    "address": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "catchAllAddress": {
                      "type": "string"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "domainId": {
                      "anyOf": [
                        {
                          "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": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "id": {
                      "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": "string"
                    },
                    "signingSecret": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    },
                    "webhookUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "accountId",
                    "domainId",
                    "domain",
                    "address",
                    "webhookUrl",
                    "token",
                    "catchAllAddress",
                    "signingSecret"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Route mail received on your domain to a webhook.",
        "tags": [
          "Inbound"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/logs/requests": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "maximum": 599,
              "minimum": 100,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "min_status",
            "required": false,
            "schema": {
              "maximum": 599,
              "minimum": 100,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "route",
            "required": false,
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "key_id",
            "required": false,
            "schema": {
              "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": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "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+)?)?(Z|([+-]\\d{2}:?\\d{2}))$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "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": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Your recent API requests and their status codes.",
        "tags": [
          "Logs and analytics"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/suppressions": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "accountId": {
                            "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": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "id": {
                            "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": "string"
                          },
                          "reason": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "accountId",
                          "email",
                          "reason",
                          "createdAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List suppressed addresses.",
        "tags": [
          "Suppressions"
        ],
        "x-envello-access": "full_access_live"
      },
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accountId": {
                    "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": "string"
                  },
                  "email": {
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accountId": {
                      "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": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "id": {
                      "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": "string"
                    },
                    "reason": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "accountId",
                    "email",
                    "reason",
                    "createdAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Suppress one address.",
        "tags": [
          "Suppressions"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/suppressions/batch": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "emails": {
                    "items": {
                      "maxLength": 320,
                      "minLength": 3,
                      "type": "string"
                    },
                    "maxItems": 1000,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "emails"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Suppress many addresses in one request.",
        "tags": [
          "Suppressions"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/suppressions/batch/delete": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "emails": {
                    "items": {
                      "maxLength": 320,
                      "minLength": 3,
                      "type": "string"
                    },
                    "maxItems": 1000,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "emails"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Remove many addresses in one request.",
        "tags": [
          "Suppressions"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/suppressions/{email}": {
      "delete": {
        "parameters": [
          {
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "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": "string"
            }
          },
          {
            "in": "path",
            "name": "email",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Remove one address from the suppression list.",
        "tags": [
          "Suppressions"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/templates": {
      "get": {
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List templates.",
        "tags": [
          "Templates"
        ],
        "x-envello-access": "full_access",
        "x-envello-sandbox": true
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a template (version 1).",
        "tags": [
          "Templates"
        ],
        "x-envello-access": "full_access",
        "x-envello-sandbox": true
      }
    },
    "/templates/{id}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a template and its version history.",
        "tags": [
          "Templates"
        ],
        "x-envello-access": "full_access"
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Fetch a template's current version.",
        "tags": [
          "Templates"
        ],
        "x-envello-access": "full_access",
        "x-envello-sandbox": true
      },
      "put": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a template. Creates a new version.",
        "tags": [
          "Templates"
        ],
        "x-envello-access": "full_access"
      }
    },
    "/templates/{id}/versions": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List every version of a template.",
        "tags": [
          "Templates"
        ],
        "x-envello-access": "full_access",
        "x-envello-sandbox": true
      }
    },
    "/webhooks/deliveries/{id}/replay": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Send one past delivery again.",
        "tags": [
          "Webhooks"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/webhooks/endpoints": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "accountId": {
                            "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": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "eventTypes": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "id": {
                            "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": "string"
                          },
                          "updatedAt": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "accountId",
                          "url",
                          "eventTypes",
                          "enabled",
                          "createdAt",
                          "updatedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List webhook endpoints.",
        "tags": [
          "Webhooks"
        ],
        "x-envello-access": "full_access_live"
      },
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accountId": {
                    "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": "string"
                  },
                  "eventTypes": {
                    "items": {
                      "enum": [
                        "delivered",
                        "bounced",
                        "complained",
                        "opened",
                        "clicked",
                        "sent",
                        "failed",
                        "scheduled",
                        "domain.created",
                        "domain.updated",
                        "domain.deleted",
                        "suppression.added",
                        "suppression.removed",
                        "broadcast.unsubscribed",
                        "received"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "url": {
                    "format": "uri",
                    "type": "string"
                  }
                },
                "required": [
                  "url",
                  "eventTypes"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accountId": {
                      "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": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "eventTypes": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "id": {
                      "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": "string"
                    },
                    "secret": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "accountId",
                    "url",
                    "secret",
                    "eventTypes",
                    "enabled",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a webhook endpoint. The signing secret is returned once.",
        "tags": [
          "Webhooks"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/webhooks/endpoints/{id}": {
      "delete": {
        "parameters": [
          {
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "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": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a webhook endpoint.",
        "tags": [
          "Webhooks"
        ],
        "x-envello-access": "full_access_live"
      },
      "patch": {
        "parameters": [
          {
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "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": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "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": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "eventTypes": {
                    "items": {
                      "enum": [
                        "delivered",
                        "bounced",
                        "complained",
                        "opened",
                        "clicked",
                        "sent",
                        "failed",
                        "scheduled",
                        "domain.created",
                        "domain.updated",
                        "domain.deleted",
                        "suppression.added",
                        "suppression.removed",
                        "broadcast.unsubscribed",
                        "received"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "url": {
                    "format": "uri",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accountId": {
                      "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": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "eventTypes": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "id": {
                      "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": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "accountId",
                    "url",
                    "eventTypes",
                    "enabled",
                    "createdAt",
                    "updatedAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Change an endpoint's URL, events or enabled state.",
        "tags": [
          "Webhooks"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/webhooks/endpoints/{id}/deliveries": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "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": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Recent delivery attempts for one endpoint.",
        "tags": [
          "Webhooks"
        ],
        "x-envello-access": "full_access_live"
      }
    },
    "/webhooks/endpoints/{id}/rotate-secret": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "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": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Rotate an endpoint's signing secret.",
        "tags": [
          "Webhooks"
        ],
        "x-envello-access": "full_access_live"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.envello.dev"
    }
  ],
  "tags": [
    {
      "name": "Emails"
    },
    {
      "name": "Templates"
    },
    {
      "name": "Domains"
    },
    {
      "name": "Logs and analytics"
    },
    {
      "name": "Suppressions"
    },
    {
      "name": "Webhooks"
    },
    {
      "name": "Inbound"
    }
  ],
  "x-envello-error-codes": [
    {
      "code": "missing_api_key",
      "fix": "Send your API key as a bearer token. Keys start with `env_live_` or `env_test_`.",
      "meaning": "The request has no `Authorization: Bearer <key>` header.",
      "status": 401
    },
    {
      "code": "invalid_api_key",
      "fix": "Copy the key again from the dashboard, or create a new one. A rotated key stops working immediately.",
      "meaning": "The key is malformed, revoked, or belongs to a suspended account.",
      "status": 401
    },
    {
      "code": "live_mode_requires_verification",
      "fix": "Click the link in the verification email. Test-mode keys work before verification.",
      "meaning": "A live-mode key was used before the account email was verified.",
      "status": 403
    },
    {
      "code": "insufficient_key_permission",
      "fix": "Use a full-access key for management endpoints. Sending keys can only send and read their own sends.",
      "meaning": "A `sending_access` key called an endpoint that needs a `full_access` key.",
      "status": 403
    },
    {
      "code": "key_domain_restricted",
      "fix": "Send from the domain the key is locked to, or use a key without a domain restriction.",
      "meaning": "The key is locked to one sending domain and the `from` address uses another.",
      "status": 403
    },
    {
      "code": "invalid_request",
      "fix": "Fix the fields listed in `issues`. The API reference lists every field and its limits.",
      "meaning": "The body failed validation. The response has an `issues` array naming each bad field.",
      "status": 400
    },
    {
      "code": "invalid_id",
      "fix": "Use the `id` returned when the resource was created.",
      "meaning": "The id in the URL is not a valid UUID.",
      "status": 400
    },
    {
      "code": "not_found",
      "fix": "Check the id and that the key belongs to the same account that created it.",
      "meaning": "No resource with that id exists on this account.",
      "status": 404
    },
    {
      "code": "invalid_idempotency_key",
      "fix": "Use a UUID or another short value from that character set.",
      "meaning": "The `Idempotency-Key` header is too long or has characters outside letters, digits, `.`, `_`, `:` and `-`.",
      "status": 400
    },
    {
      "code": "idempotency_key_conflict",
      "fix": "Use a new key for a new request. Reuse a key only to retry the exact same request.",
      "meaning": "The `Idempotency-Key` was already used with a different request body.",
      "status": 409
    },
    {
      "code": "attachment_too_large",
      "fix": "Shrink or drop attachments, or link to the file instead.",
      "meaning": "An attachment, or all attachments together, are over the size limit.",
      "status": 413
    },
    {
      "code": "domain_not_verified",
      "fix": "Add the domain in the dashboard or with `POST /domains`, publish its DNS records, then verify it.",
      "meaning": "The `from` domain is not a verified sending domain on this account.",
      "status": 403
    },
    {
      "code": "onboarding_sender_restricted",
      "fix": "The onboarding address can only mail your own verified address. Verify a domain to send to anyone else.",
      "meaning": "A send from the shared onboarding address went to someone other than the account's own email.",
      "status": 403
    },
    {
      "code": "account_paused",
      "fix": "Email hello@envello.dev to have the account reviewed. The `message` field says why it paused.",
      "meaning": "Sending is paused on this account, usually because bounce or complaint rates passed the safety threshold.",
      "status": 403
    },
    {
      "code": "account_held_for_review",
      "fix": "Email hello@envello.dev to have the account activated.",
      "meaning": "The account is held for a manual review before it can send.",
      "status": 403
    },
    {
      "code": "broadcast_paused",
      "fix": "Email hello@envello.dev to have the broadcast stream reviewed.",
      "meaning": "The broadcast stream is paused for this account. Transactional sending still works.",
      "status": 403
    },
    {
      "code": "broadcast_stream_disabled",
      "fix": "Send as transactional, or ask for the broadcast stream to be enabled.",
      "meaning": "`stream: \"broadcast\"` was sent but the broadcast stream isn't enabled for this account.",
      "status": 403
    },
    {
      "code": "broadcast_stream_not_enabled",
      "fix": "An admin can switch it on in the dashboard under Settings > Broadcast stream. Transactional sending isn't affected.",
      "meaning": "`stream: \"broadcast\"` was sent but no admin has switched the broadcast stream on for this account.",
      "status": 403
    },
    {
      "code": "invalid_broadcast_request",
      "fix": "Send one broadcast email per recipient. Use `POST /emails/batch` for many.",
      "meaning": "A broadcast email must have exactly one `to` recipient and no `cc` or `bcc`, so each message can carry its own unsubscribe link.",
      "status": 400
    },
    {
      "code": "broadcast_unavailable",
      "fix": "Send as transactional for now.",
      "meaning": "Broadcast sending isn't configured on this server yet.",
      "status": 503
    },
    {
      "code": "verification_fee_required",
      "fix": "Pay it in the dashboard under Billing. Test-mode keys keep working in the meantime.",
      "meaning": "The account hasn't paid the one-time sender verification fee, so production sending is locked.",
      "status": 402
    },
    {
      "code": "monthly_spend_cap_reached",
      "fix": "Wait for the next billing period, or have an admin turn the cap off or upgrade under Billing. Test-mode keys keep working.",
      "meaning": "The account's spend cap is on and this billing period's plan quota is used up, so sending stops instead of billing overage.",
      "status": 429
    },
    {
      "code": "reputation_throttled",
      "fix": "Wait `retry_after_seconds` and retry. Clean your list; the throttle lifts automatically once the rate is back down.",
      "meaning": "The account's bounce or complaint rate is high, so production sending is throttled to a per-minute and per-day recipient budget. The response has `limit`, `daily_limit` and `retry_after_seconds`, plus a `Retry-After` header.",
      "status": 429
    },
    {
      "code": "rate_limited",
      "fix": "Back off and retry. Use `POST /emails/batch` to send many emails in one request.",
      "meaning": "Too many send requests from this key in a short window.",
      "status": 429
    },
    {
      "code": "daily_send_cap_exceeded",
      "fix": "Retry tomorrow, or email hello@envello.dev if you need a higher limit sooner.",
      "meaning": "The account reached its daily sending limit. New accounts start low and the limit rises as reputation builds.",
      "status": 429
    },
    {
      "code": "recipient_suppressed",
      "fix": "Remove them from the send, or delete the suppression with `DELETE /suppressions/{email}` if you know the address is good again.",
      "meaning": "One or more recipients are on the suppression list after a bounce, complaint or unsubscribe. The response has `suppressed_count`.",
      "status": 422
    },
    {
      "code": "recipient_domain_invalid",
      "fix": "Check the address for typos.",
      "meaning": "A recipient's domain has no MX record, publishes a null MX, doesn't exist, or is a known typo domain such as `gmail.co`.",
      "status": 422
    },
    {
      "code": "content_blocked",
      "fix": "Review links and wording. Email hello@envello.dev if you think the block is wrong.",
      "meaning": "The content matched patterns commonly associated with spam or phishing.",
      "status": 422
    },
    {
      "code": "template_not_found",
      "fix": "List templates with `GET /templates` and use one of their ids.",
      "meaning": "`template_id` doesn't match a template on this account.",
      "status": 404
    },
    {
      "code": "template_variables_missing",
      "fix": "Pass every declared variable in `variables`.",
      "meaning": "The template declares variables the request didn't provide. The response lists them in `variables`.",
      "status": 422
    },
    {
      "code": "template_variables_unknown",
      "fix": "Remove them, or add them to the template's `variables`.",
      "meaning": "The request passed variables the template doesn't declare. The response lists them in `variables`.",
      "status": 422
    },
    {
      "code": "template_placeholder_undeclared",
      "fix": "Add the placeholder to the template's `variables` with `PUT /templates/{id}`.",
      "meaning": "The template body uses a placeholder that isn't in its `variables` list.",
      "status": 422
    },
    {
      "code": "send_at_in_past",
      "fix": "Use a future ISO 8601 timestamp, or omit `send_at` to send now.",
      "meaning": "`send_at` is not in the future.",
      "status": 422
    },
    {
      "code": "not_reschedulable",
      "fix": "Only emails sent with `send_at` that haven't fired can be rescheduled.",
      "meaning": "The email isn't scheduled, so there's nothing to move.",
      "status": 409
    },
    {
      "code": "not_cancelable",
      "fix": "Only emails sent with `send_at` that haven't fired can be canceled.",
      "meaning": "The email isn't scheduled, so there's nothing to cancel.",
      "status": 409
    },
    {
      "code": "already_sending",
      "fix": "None. The email is on its way.",
      "meaning": "The scheduled send already started, so it can't be moved or canceled.",
      "status": 409
    },
    {
      "code": "not_shareable",
      "fix": "Share links work for sent and scheduled emails only.",
      "meaning": "A canceled email has nothing to share.",
      "status": 409
    },
    {
      "code": "claim_record_not_found",
      "fix": "Publish the TXT record from the `message`, wait for DNS to propagate, then call `POST /domains/claim/verify` again.",
      "meaning": "The TXT record for a domain claim isn't visible in DNS yet.",
      "status": 422
    }
  ]
}
