{
  "openapi": "3.1.0",
  "info": {
    "title": "Oblien API",
    "version": "v2",
    "description": "Executable contracts shared by HTTP and MCP routes."
  },
  "servers": [
    {
      "url": "/v2",
      "description": "Versioned API"
    }
  ],
  "paths": {
    "/mail/{identifier}": {
      "get": {
        "operationId": "mail.getTenant",
        "summary": "Read the mail tenant and effective holds",
        "description": "Check whether your namespace can send mail and see which holds need attention.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\nRetry guidance: Safe to repeat. Provisioning continues in the background.",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            },
            "examples": {
              "example1": {
                "summary": "An active tenant",
                "value": "transactional-mail"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "id",
                        "namespace",
                        "region",
                        "state",
                        "holds",
                        "reason",
                        "recovery",
                        "capabilities"
                      ],
                      "properties": {
                        "id": {
                          "minLength": 1,
                          "maxLength": 64,
                          "type": "string"
                        },
                        "namespace": {
                          "minLength": 1,
                          "maxLength": 255,
                          "type": "string"
                        },
                        "region": {
                          "const": "us-east-2",
                          "type": "string"
                        },
                        "state": {
                          "anyOf": [
                            {
                              "const": "provisioning",
                              "type": "string"
                            },
                            {
                              "const": "active",
                              "type": "string"
                            },
                            {
                              "const": "paused",
                              "type": "string"
                            },
                            {
                              "const": "failed",
                              "type": "string"
                            },
                            {
                              "const": "closed",
                              "type": "string"
                            }
                          ]
                        },
                        "holds": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "billing",
                                "type": "string"
                              },
                              {
                                "const": "aws",
                                "type": "string"
                              },
                              {
                                "const": "abuse",
                                "type": "string"
                              },
                              {
                                "const": "namespace",
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "recovery": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "capabilities": {
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "send"
                          ],
                          "properties": {
                            "send": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "An active tenant",
                    "value": {
                      "success": true,
                      "data": {
                        "id": "e07ab08c-bfe0-45ab-873c-2025cc6ad881",
                        "namespace": "transactional-mail",
                        "region": "us-east-2",
                        "state": "active",
                        "holds": [],
                        "reason": null,
                        "recovery": null,
                        "capabilities": {
                          "send": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.read"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "read",
        "x-read-only": true,
        "x-mcp-tool": "mail_get_tenant",
        "x-mcp-annotations": {
          "readOnlyHint": true,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false
        }
      }
    },
    "/mail/{identifier}/ensure": {
      "post": {
        "operationId": "mail.ensure",
        "summary": "Provision the namespace mail tenant idempotently",
        "description": "Provision the namespace mail tenant idempotently",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "id",
                        "namespace",
                        "region",
                        "state",
                        "holds",
                        "reason",
                        "recovery",
                        "capabilities"
                      ],
                      "properties": {
                        "id": {
                          "minLength": 1,
                          "maxLength": 64,
                          "type": "string"
                        },
                        "namespace": {
                          "minLength": 1,
                          "maxLength": 255,
                          "type": "string"
                        },
                        "region": {
                          "const": "us-east-2",
                          "type": "string"
                        },
                        "state": {
                          "anyOf": [
                            {
                              "const": "provisioning",
                              "type": "string"
                            },
                            {
                              "const": "active",
                              "type": "string"
                            },
                            {
                              "const": "paused",
                              "type": "string"
                            },
                            {
                              "const": "failed",
                              "type": "string"
                            },
                            {
                              "const": "closed",
                              "type": "string"
                            }
                          ]
                        },
                        "holds": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "billing",
                                "type": "string"
                              },
                              {
                                "const": "aws",
                                "type": "string"
                              },
                              {
                                "const": "abuse",
                                "type": "string"
                              },
                              {
                                "const": "namespace",
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "recovery": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "capabilities": {
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "send"
                          ],
                          "properties": {
                            "send": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin"
        ],
        "x-authorization-policy": "service",
        "x-read-only": false,
        "x-audit-action": "mail.ensure"
      }
    },
    "/mail/{identifier}/reputation": {
      "get": {
        "operationId": "mail.listFindings",
        "summary": "View sending reputation findings for your namespace",
        "description": "View sending reputation findings for your namespace",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "minLength": 1,
              "maxLength": 8192,
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "impact",
                          "status",
                          "description",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "type": {
                            "minLength": 1,
                            "maxLength": 64,
                            "type": "string"
                          },
                          "impact": {
                            "minLength": 1,
                            "maxLength": 32,
                            "type": "string"
                          },
                          "status": {
                            "minLength": 1,
                            "maxLength": 32,
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "anyOf": [
                              {
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "anyOf": [
                              {
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.read"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "read",
        "x-read-only": true
      }
    },
    "/mail/{identifier}/policy": {
      "get": {
        "operationId": "mail.getPolicy",
        "summary": "Read the active allowance and revision",
        "description": "Read the active allowance and revision",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "daily",
                        "period",
                        "burst",
                        "domains",
                        "keys",
                        "periodStart",
                        "periodEnd",
                        "revision"
                      ],
                      "properties": {
                        "daily": {
                          "minimum": 0,
                          "maximum": 100000000,
                          "type": "integer"
                        },
                        "period": {
                          "minimum": 0,
                          "maximum": 1000000000,
                          "type": "integer"
                        },
                        "burst": {
                          "minimum": 0,
                          "maximum": 100000,
                          "type": "integer"
                        },
                        "domains": {
                          "minimum": 0,
                          "maximum": 10000,
                          "type": "integer"
                        },
                        "keys": {
                          "minimum": 0,
                          "maximum": 10000,
                          "type": "integer"
                        },
                        "periodStart": {
                          "anyOf": [
                            {
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "periodEnd": {
                          "anyOf": [
                            {
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "revision": {
                          "minimum": 0,
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.read"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "read",
        "x-read-only": true
      },
      "put": {
        "operationId": "mail.updatePolicy",
        "summary": "Set billing allowances using a revision",
        "description": "Set billing allowances using a revision",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "daily",
                  "period",
                  "burst",
                  "domains",
                  "keys",
                  "periodStart",
                  "periodEnd",
                  "revision"
                ],
                "properties": {
                  "daily": {
                    "minimum": 0,
                    "maximum": 100000000,
                    "type": "integer"
                  },
                  "period": {
                    "minimum": 0,
                    "maximum": 1000000000,
                    "type": "integer"
                  },
                  "burst": {
                    "minimum": 0,
                    "maximum": 100000,
                    "type": "integer"
                  },
                  "domains": {
                    "minimum": 0,
                    "maximum": 10000,
                    "type": "integer"
                  },
                  "keys": {
                    "minimum": 0,
                    "maximum": 10000,
                    "type": "integer"
                  },
                  "periodStart": {
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                    "type": "string"
                  },
                  "periodEnd": {
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                    "type": "string"
                  },
                  "revision": {
                    "minimum": 0,
                    "type": "integer"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "daily",
                        "period",
                        "burst",
                        "domains",
                        "keys",
                        "periodStart",
                        "periodEnd",
                        "revision"
                      ],
                      "properties": {
                        "daily": {
                          "minimum": 0,
                          "maximum": 100000000,
                          "type": "integer"
                        },
                        "period": {
                          "minimum": 0,
                          "maximum": 1000000000,
                          "type": "integer"
                        },
                        "burst": {
                          "minimum": 0,
                          "maximum": 100000,
                          "type": "integer"
                        },
                        "domains": {
                          "minimum": 0,
                          "maximum": 10000,
                          "type": "integer"
                        },
                        "keys": {
                          "minimum": 0,
                          "maximum": 10000,
                          "type": "integer"
                        },
                        "periodStart": {
                          "anyOf": [
                            {
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "periodEnd": {
                          "anyOf": [
                            {
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "revision": {
                          "minimum": 0,
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin"
        ],
        "x-authorization-policy": "service",
        "x-read-only": false,
        "x-audit-action": "mail.updatePolicy"
      }
    },
    "/mail/{identifier}/pause": {
      "post": {
        "operationId": "mail.pause",
        "summary": "Apply an independent billing or abuse hold",
        "description": "Apply an independent billing or abuse hold",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "hold",
                  "reason"
                ],
                "properties": {
                  "hold": {
                    "anyOf": [
                      {
                        "const": "billing",
                        "type": "string"
                      },
                      {
                        "const": "abuse",
                        "type": "string"
                      }
                    ]
                  },
                  "reason": {
                    "minLength": 1,
                    "maxLength": 256,
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "id",
                        "namespace",
                        "region",
                        "state",
                        "holds",
                        "reason",
                        "recovery",
                        "capabilities"
                      ],
                      "properties": {
                        "id": {
                          "minLength": 1,
                          "maxLength": 64,
                          "type": "string"
                        },
                        "namespace": {
                          "minLength": 1,
                          "maxLength": 255,
                          "type": "string"
                        },
                        "region": {
                          "const": "us-east-2",
                          "type": "string"
                        },
                        "state": {
                          "anyOf": [
                            {
                              "const": "provisioning",
                              "type": "string"
                            },
                            {
                              "const": "active",
                              "type": "string"
                            },
                            {
                              "const": "paused",
                              "type": "string"
                            },
                            {
                              "const": "failed",
                              "type": "string"
                            },
                            {
                              "const": "closed",
                              "type": "string"
                            }
                          ]
                        },
                        "holds": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "billing",
                                "type": "string"
                              },
                              {
                                "const": "aws",
                                "type": "string"
                              },
                              {
                                "const": "abuse",
                                "type": "string"
                              },
                              {
                                "const": "namespace",
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "recovery": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "capabilities": {
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "send"
                          ],
                          "properties": {
                            "send": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin"
        ],
        "x-authorization-policy": "holds",
        "x-read-only": false,
        "x-audit-action": "mail.pause"
      }
    },
    "/mail/{identifier}/resume": {
      "post": {
        "operationId": "mail.resume",
        "summary": "Clear only the specified hold",
        "description": "Clear only the specified hold",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "hold",
                  "reason"
                ],
                "properties": {
                  "hold": {
                    "anyOf": [
                      {
                        "const": "billing",
                        "type": "string"
                      },
                      {
                        "const": "abuse",
                        "type": "string"
                      }
                    ]
                  },
                  "reason": {
                    "minLength": 1,
                    "maxLength": 256,
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "id",
                        "namespace",
                        "region",
                        "state",
                        "holds",
                        "reason",
                        "recovery",
                        "capabilities"
                      ],
                      "properties": {
                        "id": {
                          "minLength": 1,
                          "maxLength": 64,
                          "type": "string"
                        },
                        "namespace": {
                          "minLength": 1,
                          "maxLength": 255,
                          "type": "string"
                        },
                        "region": {
                          "const": "us-east-2",
                          "type": "string"
                        },
                        "state": {
                          "anyOf": [
                            {
                              "const": "provisioning",
                              "type": "string"
                            },
                            {
                              "const": "active",
                              "type": "string"
                            },
                            {
                              "const": "paused",
                              "type": "string"
                            },
                            {
                              "const": "failed",
                              "type": "string"
                            },
                            {
                              "const": "closed",
                              "type": "string"
                            }
                          ]
                        },
                        "holds": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "billing",
                                "type": "string"
                              },
                              {
                                "const": "aws",
                                "type": "string"
                              },
                              {
                                "const": "abuse",
                                "type": "string"
                              },
                              {
                                "const": "namespace",
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "recovery": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "capabilities": {
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "send"
                          ],
                          "properties": {
                            "send": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin"
        ],
        "x-authorization-policy": "holds",
        "x-read-only": false,
        "x-audit-action": "mail.resume"
      }
    },
    "/mail/{identifier}/close": {
      "post": {
        "operationId": "mail.close",
        "summary": "Close sending and revoke tenant keys",
        "description": "Close sending and revoke tenant keys",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "minLength": 1,
                    "maxLength": 256,
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "id",
                        "namespace",
                        "region",
                        "state",
                        "holds",
                        "reason",
                        "recovery",
                        "capabilities"
                      ],
                      "properties": {
                        "id": {
                          "minLength": 1,
                          "maxLength": 64,
                          "type": "string"
                        },
                        "namespace": {
                          "minLength": 1,
                          "maxLength": 255,
                          "type": "string"
                        },
                        "region": {
                          "const": "us-east-2",
                          "type": "string"
                        },
                        "state": {
                          "anyOf": [
                            {
                              "const": "provisioning",
                              "type": "string"
                            },
                            {
                              "const": "active",
                              "type": "string"
                            },
                            {
                              "const": "paused",
                              "type": "string"
                            },
                            {
                              "const": "failed",
                              "type": "string"
                            },
                            {
                              "const": "closed",
                              "type": "string"
                            }
                          ]
                        },
                        "holds": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "billing",
                                "type": "string"
                              },
                              {
                                "const": "aws",
                                "type": "string"
                              },
                              {
                                "const": "abuse",
                                "type": "string"
                              },
                              {
                                "const": "namespace",
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "recovery": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "capabilities": {
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "send"
                          ],
                          "properties": {
                            "send": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin"
        ],
        "x-authorization-policy": "service",
        "x-read-only": false,
        "x-audit-action": "mail.close"
      }
    },
    "/mail/{identifier}/domains": {
      "post": {
        "operationId": "mail.addDomain",
        "summary": "Request ownership proof for one exact domain",
        "description": "Request ownership proof for one exact domain",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "domain"
                ],
                "properties": {
                  "domain": {
                    "minLength": 1,
                    "maxLength": 253,
                    "type": "string"
                  },
                  "returnPath": {
                    "minLength": 1,
                    "maxLength": 253,
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "id",
                        "domain",
                        "state",
                        "reason",
                        "checkedAt",
                        "records"
                      ],
                      "properties": {
                        "id": {
                          "minLength": 1,
                          "maxLength": 64,
                          "type": "string"
                        },
                        "domain": {
                          "minLength": 1,
                          "maxLength": 253,
                          "type": "string"
                        },
                        "state": {
                          "anyOf": [
                            {
                              "const": "pending_dns",
                              "type": "string"
                            },
                            {
                              "const": "verifying",
                              "type": "string"
                            },
                            {
                              "const": "ready",
                              "type": "string"
                            },
                            {
                              "const": "verification_failed",
                              "type": "string"
                            },
                            {
                              "const": "disabled",
                              "type": "string"
                            }
                          ]
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "checkedAt": {
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                          "type": "string"
                        },
                        "records": {
                          "type": "array",
                          "items": {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "type",
                              "name",
                              "value",
                              "status"
                            ],
                            "properties": {
                              "type": {
                                "anyOf": [
                                  {
                                    "const": "TXT",
                                    "type": "string"
                                  },
                                  {
                                    "const": "CNAME",
                                    "type": "string"
                                  },
                                  {
                                    "const": "MX",
                                    "type": "string"
                                  }
                                ]
                              },
                              "name": {
                                "minLength": 1,
                                "maxLength": 253,
                                "type": "string"
                              },
                              "value": {
                                "minLength": 1,
                                "maxLength": 512,
                                "type": "string"
                              },
                              "status": {
                                "anyOf": [
                                  {
                                    "const": "pending",
                                    "type": "string"
                                  },
                                  {
                                    "const": "verified",
                                    "type": "string"
                                  },
                                  {
                                    "const": "lookup_error",
                                    "type": "string"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "manage",
        "x-read-only": false,
        "x-audit-action": "mail.addDomain"
      },
      "get": {
        "operationId": "mail.listDomains",
        "summary": "List sending identities in this tenant",
        "description": "List sending identities in this tenant",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "minLength": 1,
              "maxLength": 8192,
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "domain",
                          "ownership",
                          "disabled"
                        ],
                        "properties": {
                          "id": {
                            "minLength": 1,
                            "maxLength": 64,
                            "type": "string"
                          },
                          "domain": {
                            "minLength": 1,
                            "maxLength": 253,
                            "type": "string"
                          },
                          "ownership": {
                            "anyOf": [
                              {
                                "const": "pending",
                                "type": "string"
                              },
                              {
                                "const": "verified",
                                "type": "string"
                              }
                            ]
                          },
                          "disabled": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.read"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "read",
        "x-read-only": true
      }
    },
    "/mail/{identifier}/domains/{id}": {
      "get": {
        "operationId": "mail.getDomain",
        "summary": "Read a sending identity and DNS records",
        "description": "Read a sending identity and DNS records",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "id",
                        "domain",
                        "state",
                        "reason",
                        "checkedAt",
                        "records"
                      ],
                      "properties": {
                        "id": {
                          "minLength": 1,
                          "maxLength": 64,
                          "type": "string"
                        },
                        "domain": {
                          "minLength": 1,
                          "maxLength": 253,
                          "type": "string"
                        },
                        "state": {
                          "anyOf": [
                            {
                              "const": "pending_dns",
                              "type": "string"
                            },
                            {
                              "const": "verifying",
                              "type": "string"
                            },
                            {
                              "const": "ready",
                              "type": "string"
                            },
                            {
                              "const": "verification_failed",
                              "type": "string"
                            },
                            {
                              "const": "disabled",
                              "type": "string"
                            }
                          ]
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "checkedAt": {
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                          "type": "string"
                        },
                        "records": {
                          "type": "array",
                          "items": {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "type",
                              "name",
                              "value",
                              "status"
                            ],
                            "properties": {
                              "type": {
                                "anyOf": [
                                  {
                                    "const": "TXT",
                                    "type": "string"
                                  },
                                  {
                                    "const": "CNAME",
                                    "type": "string"
                                  },
                                  {
                                    "const": "MX",
                                    "type": "string"
                                  }
                                ]
                              },
                              "name": {
                                "minLength": 1,
                                "maxLength": 253,
                                "type": "string"
                              },
                              "value": {
                                "minLength": 1,
                                "maxLength": 512,
                                "type": "string"
                              },
                              "status": {
                                "anyOf": [
                                  {
                                    "const": "pending",
                                    "type": "string"
                                  },
                                  {
                                    "const": "verified",
                                    "type": "string"
                                  },
                                  {
                                    "const": "lookup_error",
                                    "type": "string"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.read"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "read",
        "x-read-only": true
      },
      "delete": {
        "operationId": "mail.removeDomain",
        "summary": "Disable a sending domain and invalidate bound keys",
        "description": "Disable a sending domain and invalidate bound keys",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "cleanup",
        "x-read-only": false,
        "x-audit-action": "mail.removeDomain"
      }
    },
    "/mail/{identifier}/domains/{id}/verify": {
      "post": {
        "operationId": "mail.verifyDomain",
        "summary": "Check your domain’s DNS records and sending status",
        "description": "Check your domain’s DNS records and sending status",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "id",
                        "domain",
                        "state",
                        "reason",
                        "checkedAt",
                        "records"
                      ],
                      "properties": {
                        "id": {
                          "minLength": 1,
                          "maxLength": 64,
                          "type": "string"
                        },
                        "domain": {
                          "minLength": 1,
                          "maxLength": 253,
                          "type": "string"
                        },
                        "state": {
                          "anyOf": [
                            {
                              "const": "pending_dns",
                              "type": "string"
                            },
                            {
                              "const": "verifying",
                              "type": "string"
                            },
                            {
                              "const": "ready",
                              "type": "string"
                            },
                            {
                              "const": "verification_failed",
                              "type": "string"
                            },
                            {
                              "const": "disabled",
                              "type": "string"
                            }
                          ]
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "checkedAt": {
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                          "type": "string"
                        },
                        "records": {
                          "type": "array",
                          "items": {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "type",
                              "name",
                              "value",
                              "status"
                            ],
                            "properties": {
                              "type": {
                                "anyOf": [
                                  {
                                    "const": "TXT",
                                    "type": "string"
                                  },
                                  {
                                    "const": "CNAME",
                                    "type": "string"
                                  },
                                  {
                                    "const": "MX",
                                    "type": "string"
                                  }
                                ]
                              },
                              "name": {
                                "minLength": 1,
                                "maxLength": 253,
                                "type": "string"
                              },
                              "value": {
                                "minLength": 1,
                                "maxLength": 512,
                                "type": "string"
                              },
                              "status": {
                                "anyOf": [
                                  {
                                    "const": "pending",
                                    "type": "string"
                                  },
                                  {
                                    "const": "verified",
                                    "type": "string"
                                  },
                                  {
                                    "const": "lookup_error",
                                    "type": "string"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "manage",
        "x-read-only": false,
        "x-audit-action": "mail.verifyDomain"
      }
    },
    "/mail/{identifier}/keys": {
      "post": {
        "operationId": "mail.createKey",
        "summary": "Issue a send-only key and reveal its secret once",
        "description": "Issue a send-only key and reveal its secret once",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "minLength": 1,
                    "maxLength": 100,
                    "type": "string"
                  },
                  "domainId": {
                    "minLength": 1,
                    "maxLength": 64,
                    "type": "string"
                  },
                  "sender": {
                    "minLength": 1,
                    "maxLength": 254,
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "id",
                        "name",
                        "prefix",
                        "domainId",
                        "sender",
                        "createdAt",
                        "lastUsedAt",
                        "secret"
                      ],
                      "properties": {
                        "id": {
                          "minLength": 1,
                          "maxLength": 64,
                          "type": "string"
                        },
                        "name": {
                          "minLength": 1,
                          "maxLength": 100,
                          "type": "string"
                        },
                        "prefix": {
                          "minLength": 1,
                          "maxLength": 16,
                          "type": "string"
                        },
                        "domainId": {
                          "anyOf": [
                            {
                              "minLength": 1,
                              "maxLength": 64,
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sender": {
                          "anyOf": [
                            {
                              "minLength": 1,
                              "maxLength": 254,
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                          "type": "string"
                        },
                        "lastUsedAt": {
                          "anyOf": [
                            {
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "secret": {
                          "minLength": 1,
                          "maxLength": 128,
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "manage",
        "x-read-only": false,
        "x-audit-action": "mail.createKey"
      },
      "get": {
        "operationId": "mail.listKeys",
        "summary": "List active sending key metadata",
        "description": "List active sending key metadata",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "minLength": 1,
              "maxLength": 8192,
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "prefix",
                          "domainId",
                          "sender",
                          "createdAt",
                          "lastUsedAt"
                        ],
                        "properties": {
                          "id": {
                            "minLength": 1,
                            "maxLength": 64,
                            "type": "string"
                          },
                          "name": {
                            "minLength": 1,
                            "maxLength": 100,
                            "type": "string"
                          },
                          "prefix": {
                            "minLength": 1,
                            "maxLength": 16,
                            "type": "string"
                          },
                          "domainId": {
                            "anyOf": [
                              {
                                "minLength": 1,
                                "maxLength": 64,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sender": {
                            "anyOf": [
                              {
                                "minLength": 1,
                                "maxLength": 254,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                            "type": "string"
                          },
                          "lastUsedAt": {
                            "anyOf": [
                              {
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "manage",
        "x-read-only": true
      }
    },
    "/mail/{identifier}/keys/{id}": {
      "delete": {
        "operationId": "mail.revokeKey",
        "summary": "Revoke a send-only key",
        "description": "Revoke a send-only key",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "cleanup",
        "x-read-only": false,
        "x-audit-action": "mail.revokeKey"
      }
    },
    "/mail/{identifier}/smtp/session": {
      "get": {
        "operationId": "mail.smtpSession",
        "summary": "Authenticate a sending key for SMTP submission",
        "description": "Authenticate a sending key for SMTP submission",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.send"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "send",
        "x-read-only": true
      }
    },
    "/mail/{identifier}/messages": {
      "post": {
        "operationId": "mail.send",
        "summary": "Queue transactional email durably. A tenant-scoped Idempotency-Key header is required.",
        "description": "Reserve recipient quota and wallet credits at the current mail sending price.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Credits are charged when Mail confirms acceptance for sending. A failure before acceptance releases the hold.\n\nRetry guidance: Reuse the same idempotency key and payload to retrieve the original receipt and price.",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            },
            "examples": {
              "example1": {
                "summary": "One recipient queued",
                "value": "transactional-mail"
              }
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "pattern": "^[!-~]{1,128}$",
              "description": "Reuse this key only for the same message in this namespace.",
              "type": "string"
            },
            "description": "Reuse this key only for the same message in this namespace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "from",
                  "to",
                  "subject"
                ],
                "properties": {
                  "from": {
                    "minLength": 1,
                    "maxLength": 254,
                    "type": "string"
                  },
                  "to": {
                    "maxItems": 50,
                    "description": "May be empty when Cc or Bcc contains a recipient.",
                    "type": "array",
                    "items": {
                      "minLength": 1,
                      "maxLength": 254,
                      "type": "string"
                    }
                  },
                  "cc": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "minLength": 1,
                      "maxLength": 254,
                      "type": "string"
                    }
                  },
                  "bcc": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "minLength": 1,
                      "maxLength": 254,
                      "type": "string"
                    }
                  },
                  "replyTo": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "minLength": 1,
                      "maxLength": 254,
                      "type": "string"
                    }
                  },
                  "subject": {
                    "minLength": 1,
                    "maxLength": 998,
                    "type": "string"
                  },
                  "text": {
                    "minLength": 1,
                    "maxLength": 500000,
                    "type": "string"
                  },
                  "html": {
                    "minLength": 1,
                    "maxLength": 500000,
                    "type": "string"
                  }
                }
              },
              "examples": {
                "example1": {
                  "summary": "One recipient queued",
                  "value": {
                    "from": "hello@notify.example.com",
                    "to": [
                      "reader@example.net"
                    ],
                    "subject": "Hello",
                    "text": "Welcome."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "id",
                        "state",
                        "recipients",
                        "credits",
                        "createdAt",
                        "reason"
                      ],
                      "properties": {
                        "id": {
                          "minLength": 1,
                          "maxLength": 64,
                          "type": "string"
                        },
                        "state": {
                          "anyOf": [
                            {
                              "const": "queued",
                              "type": "string"
                            },
                            {
                              "const": "dispatching",
                              "type": "string"
                            },
                            {
                              "const": "unknown",
                              "type": "string"
                            },
                            {
                              "const": "accepted",
                              "type": "string"
                            },
                            {
                              "const": "delivered",
                              "type": "string"
                            },
                            {
                              "const": "delayed",
                              "type": "string"
                            },
                            {
                              "const": "bounced",
                              "type": "string"
                            },
                            {
                              "const": "complained",
                              "type": "string"
                            },
                            {
                              "const": "suppressed",
                              "type": "string"
                            },
                            {
                              "const": "failed",
                              "type": "string"
                            }
                          ]
                        },
                        "recipients": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "credits": {
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "amount",
                            "state"
                          ],
                          "properties": {
                            "amount": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "state": {
                              "anyOf": [
                                {
                                  "const": "unpriced",
                                  "type": "string"
                                },
                                {
                                  "const": "held",
                                  "type": "string"
                                },
                                {
                                  "const": "charged",
                                  "type": "string"
                                },
                                {
                                  "const": "released",
                                  "type": "string"
                                }
                              ]
                            }
                          }
                        },
                        "createdAt": {
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                          "type": "string"
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "One recipient queued",
                    "value": {
                      "success": true,
                      "data": {
                        "id": "05549854-a235-485a-b8f7-f72623e31427",
                        "state": "queued",
                        "recipients": 1,
                        "credits": {
                          "amount": 0.05,
                          "state": "held"
                        },
                        "createdAt": "2026-11-01T00:00:00.000Z",
                        "reason": null
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "mail_insufficient_credits: The owner wallet cannot fund all recipients.\n\nmail_credit_quota_exhausted: The namespace credit policy cannot fund this send.",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "mail_quota_exhausted: The mail recipient allowance is exhausted.",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "mail_price_unavailable: A usable mail rate could not be calculated.",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.send"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "send",
        "x-read-only": false,
        "x-audit-action": "mail.send"
      },
      "get": {
        "operationId": "mail.listMessages",
        "summary": "List delivery records",
        "description": "List delivery records",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "minLength": 1,
              "maxLength": 8192,
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "state",
                          "recipients",
                          "credits",
                          "createdAt",
                          "reason"
                        ],
                        "properties": {
                          "id": {
                            "minLength": 1,
                            "maxLength": 64,
                            "type": "string"
                          },
                          "state": {
                            "anyOf": [
                              {
                                "const": "queued",
                                "type": "string"
                              },
                              {
                                "const": "dispatching",
                                "type": "string"
                              },
                              {
                                "const": "unknown",
                                "type": "string"
                              },
                              {
                                "const": "accepted",
                                "type": "string"
                              },
                              {
                                "const": "delivered",
                                "type": "string"
                              },
                              {
                                "const": "delayed",
                                "type": "string"
                              },
                              {
                                "const": "bounced",
                                "type": "string"
                              },
                              {
                                "const": "complained",
                                "type": "string"
                              },
                              {
                                "const": "suppressed",
                                "type": "string"
                              },
                              {
                                "const": "failed",
                                "type": "string"
                              }
                            ]
                          },
                          "recipients": {
                            "minimum": 0,
                            "type": "integer"
                          },
                          "credits": {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "amount",
                              "state"
                            ],
                            "properties": {
                              "amount": {
                                "minimum": 0,
                                "type": "number"
                              },
                              "state": {
                                "anyOf": [
                                  {
                                    "const": "unpriced",
                                    "type": "string"
                                  },
                                  {
                                    "const": "held",
                                    "type": "string"
                                  },
                                  {
                                    "const": "charged",
                                    "type": "string"
                                  },
                                  {
                                    "const": "released",
                                    "type": "string"
                                  }
                                ]
                              }
                            }
                          },
                          "createdAt": {
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                            "type": "string"
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.read"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "read",
        "x-read-only": true
      }
    },
    "/mail/{identifier}/messages/{id}": {
      "get": {
        "operationId": "mail.getMessage",
        "summary": "Inspect a message",
        "description": "Inspect a message",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "id",
                        "state",
                        "recipients",
                        "credits",
                        "createdAt",
                        "reason"
                      ],
                      "properties": {
                        "id": {
                          "minLength": 1,
                          "maxLength": 64,
                          "type": "string"
                        },
                        "state": {
                          "anyOf": [
                            {
                              "const": "queued",
                              "type": "string"
                            },
                            {
                              "const": "dispatching",
                              "type": "string"
                            },
                            {
                              "const": "unknown",
                              "type": "string"
                            },
                            {
                              "const": "accepted",
                              "type": "string"
                            },
                            {
                              "const": "delivered",
                              "type": "string"
                            },
                            {
                              "const": "delayed",
                              "type": "string"
                            },
                            {
                              "const": "bounced",
                              "type": "string"
                            },
                            {
                              "const": "complained",
                              "type": "string"
                            },
                            {
                              "const": "suppressed",
                              "type": "string"
                            },
                            {
                              "const": "failed",
                              "type": "string"
                            }
                          ]
                        },
                        "recipients": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "credits": {
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "amount",
                            "state"
                          ],
                          "properties": {
                            "amount": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "state": {
                              "anyOf": [
                                {
                                  "const": "unpriced",
                                  "type": "string"
                                },
                                {
                                  "const": "held",
                                  "type": "string"
                                },
                                {
                                  "const": "charged",
                                  "type": "string"
                                },
                                {
                                  "const": "released",
                                  "type": "string"
                                }
                              ]
                            }
                          }
                        },
                        "createdAt": {
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                          "type": "string"
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.read"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "read",
        "x-read-only": true
      }
    },
    "/mail/{identifier}/messages/{id}/events": {
      "get": {
        "operationId": "mail.listEvents",
        "summary": "Inspect recipient-level delivery events",
        "description": "Inspect recipient-level delivery events",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "minLength": 1,
              "maxLength": 8192,
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "kind",
                          "recipient",
                          "at"
                        ],
                        "properties": {
                          "id": {
                            "minLength": 1,
                            "maxLength": 32,
                            "type": "string"
                          },
                          "kind": {
                            "minLength": 1,
                            "maxLength": 24,
                            "type": "string"
                          },
                          "recipient": {
                            "anyOf": [
                              {
                                "minLength": 1,
                                "maxLength": 254,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "at": {
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                            "type": "string"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.read"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "read",
        "x-read-only": true
      }
    },
    "/mail/{identifier}/usage": {
      "get": {
        "operationId": "mail.getUsage",
        "summary": "Read recipient reservations and usage",
        "description": "View reserved and accepted recipient counts, your sending allowance, and UTC reset times.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\nRetry guidance: Safe to repeat. Queued recipients remain reserved until dispatch or a confirmed rejection.",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            },
            "examples": {
              "example1": {
                "summary": "First send queued",
                "value": "transactional-mail"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "policy",
                        "reserved",
                        "reserved24h",
                        "reservedPeriod",
                        "used24h",
                        "usedPeriod",
                        "nextDailyReset",
                        "periodReset"
                      ],
                      "properties": {
                        "policy": {
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "daily",
                            "period",
                            "burst",
                            "domains",
                            "keys",
                            "periodStart",
                            "periodEnd",
                            "revision"
                          ],
                          "properties": {
                            "daily": {
                              "minimum": 0,
                              "maximum": 100000000,
                              "type": "integer"
                            },
                            "period": {
                              "minimum": 0,
                              "maximum": 1000000000,
                              "type": "integer"
                            },
                            "burst": {
                              "minimum": 0,
                              "maximum": 100000,
                              "type": "integer"
                            },
                            "domains": {
                              "minimum": 0,
                              "maximum": 10000,
                              "type": "integer"
                            },
                            "keys": {
                              "minimum": 0,
                              "maximum": 10000,
                              "type": "integer"
                            },
                            "periodStart": {
                              "anyOf": [
                                {
                                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "periodEnd": {
                              "anyOf": [
                                {
                                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "revision": {
                              "minimum": 0,
                              "type": "integer"
                            }
                          }
                        },
                        "reserved": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "reserved24h": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "reservedPeriod": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "used24h": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "usedPeriod": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "nextDailyReset": {
                          "anyOf": [
                            {
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "periodReset": {
                          "anyOf": [
                            {
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "First send queued",
                    "value": {
                      "success": true,
                      "data": {
                        "policy": {
                          "daily": 200,
                          "period": 1000,
                          "burst": 10,
                          "domains": 2,
                          "keys": 5,
                          "revision": 1,
                          "periodStart": "2026-11-01T00:00:00.000Z",
                          "periodEnd": "2026-12-01T00:00:00.000Z"
                        },
                        "reserved": 1,
                        "reserved24h": 1,
                        "reservedPeriod": 1,
                        "used24h": 0,
                        "usedPeriod": 0,
                        "nextDailyReset": null,
                        "periodReset": "2026-12-01T00:00:00.000Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.read"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "read",
        "x-read-only": true,
        "x-mcp-tool": "mail_get_usage",
        "x-mcp-annotations": {
          "readOnlyHint": true,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false
        }
      }
    },
    "/mail/{identifier}/suppressions": {
      "get": {
        "operationId": "mail.listSuppressions",
        "summary": "List suppressed email addresses in your namespace",
        "description": "List suppressed email addresses in your namespace",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "minLength": 1,
              "maxLength": 8192,
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "address",
                          "reason",
                          "at"
                        ],
                        "properties": {
                          "address": {
                            "minLength": 1,
                            "maxLength": 254,
                            "type": "string"
                          },
                          "reason": {
                            "minLength": 1,
                            "maxLength": 32,
                            "type": "string"
                          },
                          "at": {
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                            "type": "string"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "manage",
        "x-read-only": true
      }
    },
    "/mail/{identifier}/webhook-deliveries": {
      "get": {
        "operationId": "mail.listDeliveries",
        "summary": "Inspect signed mail webhook delivery attempts",
        "description": "Inspect signed mail webhook delivery attempts",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "minLength": 1,
              "maxLength": 8192,
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "eventId",
                          "attempts",
                          "status",
                          "completed",
                          "history"
                        ],
                        "properties": {
                          "id": {
                            "minLength": 1,
                            "maxLength": 32,
                            "type": "string"
                          },
                          "eventId": {
                            "minLength": 1,
                            "maxLength": 64,
                            "type": "string"
                          },
                          "attempts": {
                            "minimum": 0,
                            "type": "integer"
                          },
                          "status": {
                            "anyOf": [
                              {
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "completed": {
                            "type": "boolean"
                          },
                          "history": {
                            "maxItems": 12,
                            "type": "array",
                            "items": {
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "at",
                                "status"
                              ],
                              "properties": {
                                "at": {
                                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                                  "type": "string"
                                },
                                "status": {
                                  "anyOf": [
                                    {
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "manage",
        "x-read-only": true
      }
    },
    "/mail/{identifier}/webhook-deliveries/{id}/replay": {
      "post": {
        "operationId": "mail.replayDelivery",
        "summary": "Replay a terminal mail webhook with its original event ID",
        "description": "Replay a terminal mail webhook with its original event ID",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "manage",
        "x-read-only": false,
        "x-audit-action": "mail.replayDelivery"
      }
    },
    "/mail/{identifier}/caps/sender": {
      "put": {
        "operationId": "mail.setSenderCap",
        "summary": "Set or clear the monthly recipient cap for one exact sender",
        "description": "Set or clear the monthly recipient cap for one exact sender",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "sender",
                  "monthlyCap"
                ],
                "properties": {
                  "sender": {
                    "minLength": 1,
                    "maxLength": 254,
                    "type": "string"
                  },
                  "monthlyCap": {
                    "anyOf": [
                      {
                        "minimum": 0,
                        "maximum": 1000000000,
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "manage",
        "x-read-only": false,
        "x-audit-action": "mail.setSenderCap"
      }
    },
    "/mail/{identifier}/usage/senders": {
      "get": {
        "operationId": "mail.listSenderUsage",
        "summary": "List monthly accepted and pending recipient counts by sender",
        "description": "List monthly accepted and pending recipient counts by sender",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "minLength": 1,
              "maxLength": 8192,
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "nextCursor",
                    "monthStart",
                    "resetAt",
                    "unattributed"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "identity",
                          "monthlyCap",
                          "accepted",
                          "pending"
                        ],
                        "properties": {
                          "identity": {
                            "minLength": 1,
                            "maxLength": 254,
                            "type": "string"
                          },
                          "monthlyCap": {
                            "anyOf": [
                              {
                                "minimum": 0,
                                "maximum": 1000000000,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "accepted": {
                            "minimum": 0,
                            "type": "integer"
                          },
                          "pending": {
                            "minimum": 0,
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "monthStart": {
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                      "type": "string"
                    },
                    "resetAt": {
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                      "type": "string"
                    },
                    "unattributed": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "accepted",
                        "pending"
                      ],
                      "properties": {
                        "accepted": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "pending": {
                          "minimum": 0,
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.read"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "read",
        "x-read-only": true
      }
    },
    "/mail/{identifier}/caps/domain": {
      "put": {
        "operationId": "mail.setDomainCap",
        "summary": "Set or clear the monthly recipient cap for one exact domain",
        "description": "Set or clear the monthly recipient cap for one exact domain",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "domain",
                  "monthlyCap"
                ],
                "properties": {
                  "domain": {
                    "minLength": 1,
                    "maxLength": 253,
                    "type": "string"
                  },
                  "monthlyCap": {
                    "anyOf": [
                      {
                        "minimum": 0,
                        "maximum": 1000000000,
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.manage"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "manage",
        "x-read-only": false,
        "x-audit-action": "mail.setDomainCap"
      }
    },
    "/mail/{identifier}/usage/domains": {
      "get": {
        "operationId": "mail.listDomainUsage",
        "summary": "List monthly accepted and pending recipient counts by domain",
        "description": "List monthly accepted and pending recipient counts by domain",
        "tags": [
          "mail"
        ],
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "minLength": 1,
              "maxLength": 8192,
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "nextCursor",
                    "monthStart",
                    "resetAt",
                    "unattributed"
                  ],
                  "properties": {
                    "success": {
                      "const": true,
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "identity",
                          "monthlyCap",
                          "accepted",
                          "pending"
                        ],
                        "properties": {
                          "identity": {
                            "minLength": 1,
                            "maxLength": 254,
                            "type": "string"
                          },
                          "monthlyCap": {
                            "anyOf": [
                              {
                                "minimum": 0,
                                "maximum": 1000000000,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "accepted": {
                            "minimum": 0,
                            "type": "integer"
                          },
                          "pending": {
                            "minimum": 0,
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "monthStart": {
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                      "type": "string"
                    },
                    "resetAt": {
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$",
                      "type": "string"
                    },
                    "unattributed": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "accepted",
                        "pending"
                      ],
                      "properties": {
                        "accepted": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "pending": {
                          "minimum": 0,
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request failed",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "success",
                    "error",
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "details": {},
                    "retryable": {
                      "type": "boolean"
                    },
                    "retryAfter": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "clientId": [],
            "clientSecret": []
          }
        ],
        "x-required-permissions": [
          "mail.read"
        ],
        "x-credential-scopes": [
          "admin",
          "namespace"
        ],
        "x-authorization-policy": "read",
        "x-read-only": true
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      },
      "clientId": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Client-ID"
      },
      "clientSecret": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Client-Secret"
      }
    }
  }
}
