{
  "openapi": "3.1.0",
  "info": {
    "title": "sendlz public API",
    "description": "Contacts, templates, campaigns, one-time codes and WhatsApp messages, over a company's own API key - the same rules the sendlz console follows.",
    "version": "2026/v1"
  },
  "servers": [
    {
      "url": "https://api.sendlz.com/sendlz-api",
      "description": "sendlz API"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/api/2026/v1/whatsapp/numbers/{phoneNumberId}/qr/{code}": {
      "get": {
        "tags": [
          "WhatsApp numbers"
        ],
        "operationId": "qrCode",
        "parameters": [
          {
            "name": "phoneNumberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Qr"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "put": {
        "tags": [
          "WhatsApp numbers"
        ],
        "operationId": "updateQr",
        "parameters": [
          {
            "name": "phoneNumberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QrBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The code with its new message; the code and its link stay the same.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Qr"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "delete": {
        "tags": [
          "WhatsApp numbers"
        ],
        "operationId": "deleteQr",
        "parameters": [
          {
            "name": "phoneNumberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The code was removed; its link and picture stop working.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "boolean"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/templates/{id}": {
      "get": {
        "tags": [
          "Templates"
        ],
        "operationId": "get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The template.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiTemplateDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such template for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiTemplateDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "put": {
        "tags": [
          "Templates"
        ],
        "operationId": "update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiTemplateDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The template, as saved.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiTemplateDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such template for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiTemplateDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Templates"
        ],
        "operationId": "delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted here and, if it was sent to WhatsApp, there too."
          },
          "400": {
            "description": "A campaign uses this template, or the WhatsApp account's access needs reconnecting. Nothing was changed."
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such template for this key's company."
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "503": {
            "description": "WhatsApp is busy or could not be reached. Nothing was changed; try again in a minute."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/contacts/{id}": {
      "get": {
        "tags": [
          "Contacts"
        ],
        "operationId": "get_1",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The contact.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiContactDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such contact for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiContactDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "put": {
        "tags": [
          "Contacts"
        ],
        "operationId": "update_1",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiContactDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The contact, as saved.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiContactDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such contact for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiContactDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/campaigns/{id}": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "operationId": "get_2",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The campaign.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCampaignDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such campaign for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCampaignDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "put": {
        "tags": [
          "Campaigns"
        ],
        "operationId": "update_2",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiCampaignDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The campaign, as saved.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCampaignDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such campaign for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCampaignDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Campaigns"
        ],
        "operationId": "delete_1",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted."
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such campaign for this key's company."
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/numbers/{phoneNumberId}/unblock": {
      "post": {
        "tags": [
          "WhatsApp numbers"
        ],
        "operationId": "unblock",
        "parameters": [
          {
            "name": "phoneNumberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NumbersBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Who was unblocked and who was not.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/BlockResult"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/numbers/{phoneNumberId}/qr": {
      "get": {
        "tags": [
          "WhatsApp numbers"
        ],
        "operationId": "qrCodes",
        "parameters": [
          {
            "name": "phoneNumberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The number's QR codes and message links.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Qr"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "post": {
        "tags": [
          "WhatsApp numbers"
        ],
        "operationId": "createQr",
        "parameters": [
          {
            "name": "phoneNumberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QrBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The new code, its message link and, when asked, the address of its picture.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Qr"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/numbers/{phoneNumberId}/block": {
      "post": {
        "tags": [
          "WhatsApp numbers"
        ],
        "operationId": "block",
        "parameters": [
          {
            "name": "phoneNumberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NumbersBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Who was blocked and who was not, with a reason for each that was not. WhatsApp blocks only people who messaged in the last 24 hours.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/BlockResult"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/messages": {
      "get": {
        "tags": [
          "WhatsApp"
        ],
        "operationId": "list",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reference",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "queuedFrom",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "queuedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of the company's messages, newest first.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageDTOApiWhatsAppMessageDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "post": {
        "tags": [
          "WhatsApp"
        ],
        "operationId": "send",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "WhatsApp took the message. The body is the message (status SENT); its id is also in the Location header. With a repeated Idempotency-Key it is the earlier message, and the Idempotent-Replayed header says so.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "202": {
            "description": "The message is accepted and paid for, but the sending side has not answered yet (status QUEUED). Look it up later, or ask again with the same Idempotency-Key, which sends it once.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A field is wrong: the number, the template (not found, not approved, or not usable here), the number of variables, the sending number, the reference or the key. The body names each field. Also when no price is set for this kind of message.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this message.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "409": {
            "description": "The Idempotency-Key was already used for a different message.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "The message was accepted but WhatsApp or the sender refused it (a number that is not on WhatsApp, say). Nothing was charged. The detail says why and carries the message id.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/conversations/{id}/reply": {
      "post": {
        "tags": [
          "WhatsApp conversations"
        ],
        "operationId": "reply",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplyBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "WhatsApp took the reply. The body is the message (status SENT).",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "202": {
            "description": "Accepted, but the sending side has not answered yet (status QUEUED). Ask again with the same Idempotency-Key, which sends it once.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The text is empty or over 4096 characters, a field breaks WhatsApp's limit for that type, the file is not in your media library, or the 24-hour window is closed. The body names each field.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "402": {
            "description": "A price is set for replies and there are not enough credits.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such thread for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "The Idempotency-Key was already used for a different message.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "WhatsApp refused the reply. Nothing was charged. The detail says why and carries the message id.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/conversations/{id}/read": {
      "post": {
        "tags": [
          "WhatsApp conversations"
        ],
        "operationId": "read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReadBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "WhatsApp took it.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The message is not one this customer sent in this thread, is older than 30 days, or typing was asked for when the 24-hour window is closed.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such thread for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "WhatsApp refused it, or did not answer in time. Nothing was changed; ask again.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/templates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "operationId": "list_1",
        "parameters": [
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "approvedOnly",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The company's templates, newest first.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiTemplateDTO"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "post": {
        "tags": [
          "Templates"
        ],
        "operationId": "create",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiTemplateDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The template, as saved - its id is in the body and in the Location header. With a repeated Idempotency-Key it is the template made by the first request, as it is now, and the Idempotent-Replayed header says so.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiTemplateDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "409": {
            "description": "The Idempotency-Key was already used for a different request, or the first request with it is still being handled.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/templates/{id}/submit": {
      "post": {
        "tags": [
          "Templates"
        ],
        "operationId": "submit",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Submitted. The template is now waiting for WhatsApp's review (whatsApp.status PENDING).",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiTemplateDTO"
                }
              }
            }
          },
          "400": {
            "description": "Not a WhatsApp template, something WhatsApp would refuse (named by field), no connected account, several and none named, or WhatsApp refused it. Nothing was changed.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiTemplateDTO"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "503": {
            "description": "WhatsApp is busy or could not be reached. Nothing was changed; try again in a minute.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiTemplateDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/otp/verify": {
      "post": {
        "tags": [
          "OTP"
        ],
        "operationId": "verify",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Whether the whole request is verified, and its status (VERIFIED, PARTLY_VERIFIED, WRONG_CODE, EXPIRED, LOCKED, ALREADY_USED). With separate codes each destination is verified in its own call, naming it in channel; PARTLY_VERIFIED says the other is still to do.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/VerifyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Separate codes were sent and channel is missing, or names a destination the request did not go to.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/VerifyResponse"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such otpId for this key's company - unknown, or expired past what is kept.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/VerifyResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/otp/send": {
      "post": {
        "tags": [
          "OTP"
        ],
        "operationId": "send_1",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The otpId to verify against, and when it expires. The code itself is never returned here - only delivered.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/SendResponse"
                }
              }
            }
          },
          "400": {
            "description": "A destination is not valid, a purpose or mode is unknown, an SMS cannot be sent to that number (no DLT template chosen for India, or international SMS is off or that country is not open yet), a price is missing from the rate card, no destination could be sent to, or one of two separate codes could not be (the request is then cancelled).",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/SendResponse"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits held to send this code to every destination.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/SendResponse"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many codes sent to one of the addresses lately - at most 3 in 10 minutes, across every company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/SendResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/media": {
      "get": {
        "tags": [
          "Media"
        ],
        "operationId": "list_2",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of the company's files, newest first.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageDTOApiMediaDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "post": {
        "tags": [
          "Media"
        ],
        "operationId": "upload",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The file is stored. The body is the file; its id is also in the Location header. With a repeated Idempotency-Key it is the earlier file, and the Idempotent-Replayed header says so.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiMediaDTO"
                }
              }
            }
          },
          "400": {
            "description": "The file was refused: nothing was sent, it is empty, it is not a type the library takes, its contents do not match its type, it is over the size limit for its kind, the company has too many files, or the library is not set up on this server. The body names the field (file).",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "409": {
            "description": "The Idempotency-Key was already used for a different file, or its first request is still being handled.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "413": {
            "description": "The request is larger than the biggest file the library takes (20 MB).",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "503": {
            "description": "Too many uploads are being handled at once. Ask again in a few seconds; the Retry-After header says how long.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/email/messages": {
      "get": {
        "tags": [
          "Email"
        ],
        "operationId": "list_3",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reference",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "queuedFrom",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "queuedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of the company's emails, newest first.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageDTOApiEmailMessageDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "post": {
        "tags": [
          "Email"
        ],
        "operationId": "send_2",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A repeated Idempotency-Key whose email has since been settled: the earlier email, as it stands (SENT or FAILED). While it is still QUEUED or SENDING the answer is 202.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEmailMessageDTO"
                }
              }
            }
          },
          "202": {
            "description": "The email is accepted and paid for, and is on its way to your mail server (status QUEUED). Look it up later to see whether the server took it. With a repeated Idempotency-Key it is the earlier email, and the Idempotent-Replayed header says so.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEmailMessageDTO"
                }
              }
            }
          },
          "400": {
            "description": "A field is wrong (the body names each one), the address cannot be mailed because it bounced or complained earlier, your email server is not set up and active, or no price is set for this kind of email.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEmailMessageDTO"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this email.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEmailMessageDTO"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "409": {
            "description": "The Idempotency-Key was already used for a different email.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEmailMessageDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/contacts": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "operationId": "create_1",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiContactDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The contact, as saved.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiContactDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "409": {
            "description": "Another contact already has this mobile, or this email.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiContactDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/contacts/search": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "operationId": "search",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A page of matching contacts, newest first.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageDTOApiContactDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/contacts/delete": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "operationId": "delete_2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "How many were deleted - {\"deleted\": <count>}.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/contacts/bulk": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "operationId": "bulk",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Created, updated and skipped counts, and any row errors.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/SzUpsertResult"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/campaigns": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "operationId": "list_4",
        "parameters": [
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of campaigns, newest first.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageDTOApiCampaignDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "post": {
        "tags": [
          "Campaigns"
        ],
        "operationId": "create_2",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiCampaignDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The campaign, as saved (DRAFT) - its id is in the body and in the Location header. With a repeated Idempotency-Key it is the campaign made by the first request, as it is now, and the Idempotent-Replayed header says so.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCampaignDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "409": {
            "description": "The Idempotency-Key was already used for a different request, or the first request with it is still being handled.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/campaigns/{id}/submit": {
      "post": {
        "tags": [
          "Campaigns"
        ],
        "operationId": "submit_1",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The campaign, now SCHEDULED.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCampaignDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "409": {
            "description": "The campaign is not in a state this can be done from (DRAFT/HELD, depending on the action). Also when the Idempotency-Key was used for a different request, or the first request with it is still being handled. With a repeated Idempotency-Key the answer is the campaign as it is now, with the Idempotent-Replayed header, not this error.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/campaigns/{id}/resume": {
      "post": {
        "tags": [
          "Campaigns"
        ],
        "operationId": "resume",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The campaign, now SCHEDULED again.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCampaignDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "409": {
            "description": "The campaign is not currently HELD, so it cannot be resumed.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCampaignDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/campaigns/{id}/hold": {
      "post": {
        "tags": [
          "Campaigns"
        ],
        "operationId": "hold",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The campaign, now HELD.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCampaignDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "409": {
            "description": "The campaign is not currently SCHEDULED, so it cannot be held.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCampaignDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/campaigns/quote": {
      "post": {
        "tags": [
          "Campaigns"
        ],
        "operationId": "quote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuoteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "What this campaign would cost, and whether it can be scheduled.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiQuoteDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/numbers/{phoneNumberId}/profile": {
      "get": {
        "tags": [
          "WhatsApp numbers"
        ],
        "operationId": "profile",
        "parameters": [
          {
            "name": "phoneNumberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The number's WhatsApp business profile.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "patch": {
        "tags": [
          "WhatsApp numbers"
        ],
        "operationId": "changeProfile",
        "parameters": [
          {
            "name": "phoneNumberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The profile as it now is.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          },
          "400": {
            "description": "A field breaks WhatsApp's limit, or nothing was given to change. The body names each field.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/window": {
      "get": {
        "tags": [
          "WhatsApp conversations"
        ],
        "operationId": "window",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "open, and when the window closes (or closed). Closed with no time when the customer never wrote.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Window"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/templates": {
      "get": {
        "tags": [
          "WhatsApp"
        ],
        "operationId": "templates",
        "responses": {
          "200": {
            "description": "The company's approved WhatsApp templates, with how many values each needs.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiWhatsAppTemplateDTO"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/numbers": {
      "get": {
        "tags": [
          "WhatsApp"
        ],
        "operationId": "numbers",
        "responses": {
          "200": {
            "description": "The numbers a message can be sent from: on an active account with a stored token.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SendingNumber"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/numbers/{phoneNumberId}/status": {
      "get": {
        "tags": [
          "WhatsApp numbers"
        ],
        "operationId": "status",
        "parameters": [
          {
            "name": "phoneNumberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "How the number stands at WhatsApp: connected or not, quality rating, display-name review and throughput.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/PhoneState"
                }
              }
            }
          },
          "400": {
            "description": "No such number on an active, connected account of this company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/PhoneState"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/numbers/{phoneNumberId}/blocked": {
      "get": {
        "tags": [
          "WhatsApp numbers"
        ],
        "operationId": "blocked",
        "parameters": [
          {
            "name": "phoneNumberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of blocked numbers. Pass the returned `after` as `after` to read the next page.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/BlockedPage"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/messages/{id}": {
      "get": {
        "tags": [
          "WhatsApp"
        ],
        "operationId": "get_3",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The message and how far it got.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiWhatsAppMessageDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such message for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiWhatsAppMessageDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/conversations": {
      "get": {
        "tags": [
          "WhatsApp conversations"
        ],
        "operationId": "list_5",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of the company's WhatsApp threads, most recently active first.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageDTOApiConversationDTO"
                }
              }
            }
          },
          "400": {
            "description": "status is not one of OPEN, PENDING, SNOOZED, ESCALATED, CLOSED, or customer is not a number.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageDTOApiConversationDTO"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/whatsapp/conversations/{id}/messages": {
      "get": {
        "tags": [
          "WhatsApp conversations"
        ],
        "operationId": "messages",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of the thread's messages, newest first.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageDTOApiConversationMessageDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such thread for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageDTOApiConversationMessageDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/reports/webhooks": {
      "get": {
        "tags": [
          "Reports"
        ],
        "operationId": "webhooks",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the range, in epoch milliseconds. Default: seven days before `to`.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the range (exclusive), in epoch milliseconds. Default: now.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The health of each webhook endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhooksReport"
                }
              }
            }
          },
          "400": {
            "description": "The range cannot be answered. The body names the field.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/WebhooksReport"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/reports/usage": {
      "get": {
        "tags": [
          "Reports"
        ],
        "operationId": "usage",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the range, in epoch milliseconds. Default: seven days before `to`.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the range (exclusive), in epoch milliseconds. Default: now.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "granularity",
            "in": "query",
            "description": "How finely the series is cut: HALF_HOUR (ranges up to 3 days), HOUR (up to 14) or DAY. Default: HOUR for ranges up to 2 days, else DAY.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "timeZone",
            "in": "query",
            "description": "The time zone days follow, such as Asia/Kolkata. Default: UTC.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The usage report.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageReport"
                }
              }
            }
          },
          "400": {
            "description": "The range, the granularity or the time zone cannot be answered. The body names the field.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/UsageReport"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "503": {
            "description": "Too many reports are being built at once. Ask again in a few seconds; Retry-After says how long.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/UsageReport"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/reports/spend": {
      "get": {
        "tags": [
          "Reports"
        ],
        "operationId": "spend",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the range, in epoch milliseconds. Default: seven days before `to`.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the range (exclusive), in epoch milliseconds. Default: now.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The credits spent and the media library.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpendReport"
                }
              }
            }
          },
          "400": {
            "description": "The range cannot be answered. The body names the field.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/SpendReport"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/reports/messages": {
      "get": {
        "tags": [
          "Reports"
        ],
        "operationId": "messages_1",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the range, in epoch milliseconds. Default: seven days before `to`.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the range (exclusive), in epoch milliseconds. Default: now.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "granularity",
            "in": "query",
            "description": "How finely the series is cut: HALF_HOUR (ranges up to 3 days), HOUR (up to 14) or DAY. Default: HOUR for ranges up to 2 days, else DAY.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "timeZone",
            "in": "query",
            "description": "The time zone days follow, such as Asia/Kolkata. Default: UTC.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reference",
            "in": "query",
            "description": "Only messages you tagged with this reference (64 characters at most).",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The message outcomes by channel.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessagesReport"
                }
              }
            }
          },
          "400": {
            "description": "The range, the granularity, the time zone or the reference cannot be answered. The body names the field.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/MessagesReport"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/reports/failures": {
      "get": {
        "tags": [
          "Reports"
        ],
        "operationId": "failures",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the range, in epoch milliseconds. Default: seven days before `to`.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the range (exclusive), in epoch milliseconds. Default: now.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "apiKeyId",
            "in": "query",
            "description": "Only calls made with this key (its id, from GET /api/2026/v1/reports/usage).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Only calls answered with this status, 400 to 599.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of failed calls, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailuresPage"
                }
              }
            }
          },
          "400": {
            "description": "The range or a filter cannot be answered. The body names the field.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/FailuresPage"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/media/{id}": {
      "get": {
        "tags": [
          "Media"
        ],
        "operationId": "get_4",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiMediaDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such file for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiMediaDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Media"
        ],
        "operationId": "delete_3",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The file is removed, and its link stops working."
          },
          "400": {
            "description": "The file cannot be removed: it is the header of a WhatsApp template. The body names the template; change it first."
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such file for this key's company."
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/me": {
      "get": {
        "tags": [
          "Key"
        ],
        "operationId": "me",
        "responses": {
          "200": {
            "description": "The key this call was made with.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/MeDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key, or one that is unknown, wrong, revoked, expired, or used from an address outside its list.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/MeDTO"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/email/messages/{id}": {
      "get": {
        "tags": [
          "Email"
        ],
        "operationId": "get_5",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The email and how far it got.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEmailMessageDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "404": {
            "description": "No such email for this key's company.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEmailMessageDTO"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/contact-attributes": {
      "get": {
        "tags": [
          "Contacts"
        ],
        "operationId": "attributes",
        "responses": {
          "200": {
            "description": "The company's ten attribute slots and their labels.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiContactAttributeDTO"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/campaigns/{id}/report": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "operationId": "report",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The report file (CSV or XLSX), as an attachment.",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/2026/v1/campaigns/{id}/recipients": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "operationId": "recipients",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of this campaign's recipients.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageDTOApiRecipientDTO"
                }
              }
            }
          },
          "400": {
            "description": "The request could not be accepted - a bad value, or nothing priced for it yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "401": {
            "description": "No key was sent, or it does not resolve to a live one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "403": {
            "description": "A live key, but not scoped for this resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side. Try again, and contact support if it keeps happening.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "QrBody": {
        "type": "object",
        "properties": {
          "prefilledMessage": {
            "type": "string"
          },
          "imageFormat": {
            "type": "string"
          }
        }
      },
      "Qr": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "prefilledMessage": {
            "type": "string"
          },
          "deepLinkUrl": {
            "type": "string"
          },
          "imageUrl": {
            "type": "string"
          }
        }
      },
      "ApiTemplateDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "headerText": {
            "type": "string"
          },
          "bodyText": {
            "type": "string"
          },
          "footerText": {
            "type": "string"
          },
          "buttonType": {
            "type": "string"
          },
          "buttonValue": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "variables": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "externalId": {
            "type": "string"
          },
          "senderId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "rejectionReason": {
            "type": "string"
          },
          "createdEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "lastModifiedEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "headerFormat": {
            "type": "string"
          },
          "headerMediaId": {
            "type": "string"
          },
          "buttons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Button"
            }
          },
          "whatsApp": {
            "$ref": "#/components/schemas/WhatsApp"
          }
        }
      },
      "Button": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "WhatsApp": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "quality": {
            "type": "string"
          },
          "changedSinceSubmission": {
            "type": "boolean"
          }
        }
      },
      "ApiContactDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "userName": {
            "type": "string"
          },
          "mobile": {
            "type": "string"
          },
          "whatsappNumber": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "attributes": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "optedIn": {
            "type": "boolean"
          },
          "emailConsent": {
            "type": "string"
          },
          "createdEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "lastModifiedEpoch": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ApiCampaignDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "campaignType": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "templateId": {
            "type": "string"
          },
          "templateName": {
            "type": "string"
          },
          "match": {
            "type": "string"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SzFilterRuleInput"
            }
          },
          "audienceEstimate": {
            "type": "integer",
            "format": "int64"
          },
          "scheduledEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "scheduleZone": {
            "type": "string"
          },
          "launchedEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "heldEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "completedEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "failureReason": {
            "type": "string"
          },
          "totalMessages": {
            "type": "integer",
            "format": "int64"
          },
          "deliveredCount": {
            "type": "integer",
            "format": "int64"
          },
          "sentCount": {
            "type": "integer",
            "format": "int64"
          },
          "failedCount": {
            "type": "integer",
            "format": "int64"
          },
          "createdEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "lastModifiedEpoch": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "SzFilterRuleInput": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          },
          "op": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "NumbersBody": {
        "type": "object",
        "properties": {
          "numbers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "BlockResult": {
        "type": "object",
        "properties": {
          "done": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "failed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Failure"
            }
          }
        }
      },
      "Failure": {
        "type": "object",
        "properties": {
          "occurredEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "apiKeyId": {
            "type": "string"
          },
          "keyName": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "endpoint": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "reason": {
            "type": "string"
          },
          "durationMs": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "SendBody": {
        "type": "object",
        "properties": {
          "templateId": {
            "type": "string"
          },
          "templateName": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "from": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          }
        }
      },
      "Location": {
        "type": "object",
        "properties": {
          "latitude": {
            "type": "number",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "format": "double"
          },
          "name": {
            "type": "string"
          },
          "address": {
            "type": "string"
          }
        }
      },
      "Reaction": {
        "type": "object",
        "properties": {
          "messageId": {
            "type": "string"
          },
          "emoji": {
            "type": "string"
          }
        }
      },
      "ReplyBody": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "contextMessageId": {
            "type": "string"
          },
          "mediaId": {
            "type": "string"
          },
          "caption": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "voice": {
            "type": "boolean"
          },
          "location": {
            "$ref": "#/components/schemas/Location"
          },
          "contacts": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "reaction": {
            "$ref": "#/components/schemas/Reaction"
          },
          "bodyText": {
            "type": "string"
          },
          "headerText": {
            "type": "string"
          },
          "footerText": {
            "type": "string"
          },
          "replyButtons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplyButton"
            }
          },
          "listButton": {
            "type": "string"
          },
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Section"
            }
          },
          "ctaLabel": {
            "type": "string"
          },
          "ctaUrl": {
            "type": "string"
          },
          "flowId": {
            "type": "string"
          },
          "flowCta": {
            "type": "string"
          },
          "flowScreen": {
            "type": "string"
          },
          "flowData": {
            "type": "object",
            "additionalProperties": {}
          }
        }
      },
      "ReplyButton": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "Row": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "Section": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Row"
            }
          }
        }
      },
      "ReadBody": {
        "type": "object",
        "properties": {
          "messageId": {
            "type": "string"
          },
          "typing": {
            "type": "boolean"
          }
        }
      },
      "SubmitRequest": {
        "type": "object",
        "properties": {
          "account": {
            "type": "string"
          }
        }
      },
      "VerifyRequest": {
        "type": "object",
        "properties": {
          "otpId": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        }
      },
      "VerifyResponse": {
        "type": "object",
        "properties": {
          "verified": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "pending": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SendRequest": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "mobile": {
            "type": "string"
          },
          "mobileVia": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "codeMode": {
            "type": "string"
          },
          "length": {
            "type": "integer",
            "format": "int32"
          },
          "ttlSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "reference": {
            "type": "string"
          },
          "country": {
            "type": "string"
          }
        }
      },
      "SendResponse": {
        "type": "object",
        "properties": {
          "otpId": {
            "type": "string"
          },
          "expiresEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "codeMode": {
            "type": "string"
          },
          "sent": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "failed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Failure"
            }
          }
        }
      },
      "ApiMediaDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "sizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "scanStatus": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "createdEpoch": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ApiEmailMessageDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          },
          "messageId": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "queuedEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "sentEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "failedEpoch": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ContactQuery": {
        "type": "object",
        "properties": {
          "q": {
            "type": "string"
          },
          "match": {
            "type": "string"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SzFilterRuleInput"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ApiPageDTOApiContactDTO": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiContactDTO"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "DeleteRequest": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "BulkRequest": {
        "type": "object",
        "properties": {
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiContactDTO"
            }
          },
          "mode": {
            "type": "string"
          }
        }
      },
      "RowError": {
        "type": "object",
        "properties": {
          "row": {
            "type": "integer",
            "format": "int32"
          },
          "reason": {
            "type": "string"
          }
        }
      },
      "SzUpsertResult": {
        "type": "object",
        "properties": {
          "created": {
            "type": "integer",
            "format": "int32"
          },
          "updated": {
            "type": "integer",
            "format": "int32"
          },
          "skipped": {
            "type": "integer",
            "format": "int32"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RowError"
            }
          }
        }
      },
      "ScheduleRequest": {
        "type": "object",
        "properties": {
          "scheduledEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "zone": {
            "type": "string"
          }
        }
      },
      "QuoteRequest": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string"
          },
          "campaignType": {
            "type": "string"
          },
          "match": {
            "type": "string"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SzFilterRuleInput"
            }
          }
        }
      },
      "ApiQuoteDTO": {
        "type": "object",
        "properties": {
          "recipients": {
            "type": "integer",
            "format": "int64"
          },
          "rateCode": {
            "type": "string"
          },
          "verdict": {
            "type": "string"
          },
          "unitPriceMicro": {
            "type": "integer",
            "format": "int64"
          },
          "totalMicro": {
            "type": "integer",
            "format": "int64"
          },
          "availableMicro": {
            "type": "integer",
            "format": "int64"
          },
          "shortfallMicro": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ProfileBody": {
        "type": "object",
        "properties": {
          "about": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "websites": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "vertical": {
            "type": "string"
          }
        }
      },
      "Profile": {
        "type": "object",
        "properties": {
          "about": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "websites": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "vertical": {
            "type": "string"
          },
          "pictureUrl": {
            "type": "string"
          }
        }
      },
      "Window": {
        "type": "object",
        "properties": {
          "open": {
            "type": "boolean"
          },
          "closesEpoch": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ApiWhatsAppTemplateDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "variableCount": {
            "type": "integer",
            "format": "int32"
          },
          "usable": {
            "type": "boolean"
          },
          "unusableReason": {
            "type": "string"
          }
        }
      },
      "SendingNumber": {
        "type": "object",
        "properties": {
          "phoneNumberId": {
            "type": "string"
          },
          "displayPhoneNumber": {
            "type": "string"
          },
          "verifiedName": {
            "type": "string"
          },
          "qualityRating": {
            "type": "string"
          },
          "messagingLimitTier": {
            "type": "string"
          }
        }
      },
      "PhoneState": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "displayPhoneNumber": {
            "type": "string"
          },
          "verifiedName": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "qualityRating": {
            "type": "string"
          },
          "nameStatus": {
            "type": "string"
          },
          "codeVerificationStatus": {
            "type": "string"
          },
          "throughputLevel": {
            "type": "string"
          }
        }
      },
      "BlockedPage": {
        "type": "object",
        "properties": {
          "numbers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "after": {
            "type": "string"
          }
        }
      },
      "ApiPageDTOApiWhatsAppMessageDTO": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiWhatsAppMessageDTO"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ApiWhatsAppMessageDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "templateName": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          },
          "providerMessageId": {
            "type": "string"
          },
          "errorCode": {
            "type": "integer",
            "format": "int32"
          },
          "error": {
            "type": "string"
          },
          "queuedEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "sentEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "deliveredEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "readEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "failedEpoch": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ApiConversationDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "customer": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "lastMessageEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "lastInboundEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "windowOpen": {
            "type": "boolean"
          },
          "windowClosesEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "preview": {
            "type": "string"
          }
        }
      },
      "ApiPageDTOApiConversationDTO": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiConversationDTO"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ApiConversationMessageDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "direction": {
            "type": "string"
          },
          "visibility": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "payload": {
            "type": "string"
          },
          "providerMessageId": {
            "type": "string"
          },
          "replyTo": {
            "type": "string"
          },
          "mediaId": {
            "type": "string"
          },
          "mediaMime": {
            "type": "string"
          },
          "mediaName": {
            "type": "string"
          },
          "epoch": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ApiPageDTOApiConversationMessageDTO": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiConversationMessageDTO"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "EndpointHealth": {
        "type": "object",
        "properties": {
          "endpointId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "disabledEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "delivered": {
            "type": "integer",
            "format": "int64"
          },
          "pending": {
            "type": "integer",
            "format": "int64"
          },
          "dead": {
            "type": "integer",
            "format": "int64"
          },
          "attempts": {
            "type": "integer",
            "format": "int64"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "lastSuccessEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "lastFailureEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "deadReasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reason"
            }
          }
        }
      },
      "Reason": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "WebhooksReport": {
        "type": "object",
        "properties": {
          "from": {
            "type": "integer",
            "format": "int64"
          },
          "to": {
            "type": "integer",
            "format": "int64"
          },
          "endpoints": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EndpointHealth"
            }
          }
        }
      },
      "Band": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "calls": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "EndpointUsage": {
        "type": "object",
        "properties": {
          "endpoint": {
            "type": "string"
          },
          "calls": {
            "type": "integer",
            "format": "int64"
          },
          "errors": {
            "type": "integer",
            "format": "int64"
          },
          "avgMs": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "KeyUsage": {
        "type": "object",
        "properties": {
          "apiKeyId": {
            "type": "string"
          },
          "keyName": {
            "type": "string"
          },
          "keyState": {
            "type": "string"
          },
          "calls": {
            "type": "integer",
            "format": "int64"
          },
          "errors": {
            "type": "integer",
            "format": "int64"
          },
          "rateLimited": {
            "type": "integer",
            "format": "int64"
          },
          "avgMs": {
            "type": "integer",
            "format": "int64"
          },
          "lastCallEpoch": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "Latency": {
        "type": "object",
        "properties": {
          "avgMs": {
            "type": "integer",
            "format": "int64"
          },
          "medianBand": {
            "type": "string"
          },
          "p90Band": {
            "type": "string"
          },
          "bands": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Band"
            }
          }
        }
      },
      "Point": {
        "type": "object",
        "properties": {
          "startEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "calls": {
            "type": "integer",
            "format": "int64"
          },
          "errors": {
            "type": "integer",
            "format": "int64"
          },
          "rateLimited": {
            "type": "integer",
            "format": "int64"
          },
          "avgMs": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "StaleKey": {
        "type": "object",
        "properties": {
          "apiKeyId": {
            "type": "string"
          },
          "keyName": {
            "type": "string"
          },
          "createdEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "lastUsedEpoch": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "StatusCount": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "calls": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "Totals": {
        "type": "object",
        "properties": {
          "calls": {
            "type": "integer",
            "format": "int64"
          },
          "errors": {
            "type": "integer",
            "format": "int64"
          },
          "rateLimited": {
            "type": "integer",
            "format": "int64"
          },
          "unauthorised": {
            "type": "integer",
            "format": "int64"
          },
          "serverErrors": {
            "type": "integer",
            "format": "int64"
          },
          "avgMs": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "UsageReport": {
        "type": "object",
        "properties": {
          "from": {
            "type": "integer",
            "format": "int64"
          },
          "to": {
            "type": "integer",
            "format": "int64"
          },
          "granularity": {
            "type": "string",
            "enum": [
              "HALF_HOUR",
              "HOUR",
              "DAY"
            ]
          },
          "totals": {
            "$ref": "#/components/schemas/Totals"
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Point"
            }
          },
          "endpoints": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EndpointUsage"
            }
          },
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KeyUsage"
            }
          },
          "statuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusCount"
            }
          },
          "latency": {
            "$ref": "#/components/schemas/Latency"
          },
          "keysNotUsed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StaleKey"
            }
          }
        }
      },
      "ChannelSpend": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string"
          },
          "messages": {
            "type": "integer",
            "format": "int64"
          },
          "creditsMicro": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "KeySpend": {
        "type": "object",
        "properties": {
          "apiKeyId": {
            "type": "string"
          },
          "keyName": {
            "type": "string"
          },
          "messages": {
            "type": "integer",
            "format": "int64"
          },
          "creditsMicro": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "MediaKind": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "files": {
            "type": "integer",
            "format": "int64"
          },
          "bytes": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "MediaReport": {
        "type": "object",
        "properties": {
          "library": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaKind"
            }
          },
          "totalFiles": {
            "type": "integer",
            "format": "int64"
          },
          "totalBytes": {
            "type": "integer",
            "format": "int64"
          },
          "viaApiFiles": {
            "type": "integer",
            "format": "int64"
          },
          "viaApiBytes": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "RateSpend": {
        "type": "object",
        "properties": {
          "rateCode": {
            "type": "string"
          },
          "messages": {
            "type": "integer",
            "format": "int64"
          },
          "creditsMicro": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "SpendReport": {
        "type": "object",
        "properties": {
          "from": {
            "type": "integer",
            "format": "int64"
          },
          "to": {
            "type": "integer",
            "format": "int64"
          },
          "byChannel": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChannelSpend"
            }
          },
          "byKey": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KeySpend"
            }
          },
          "byRate": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RateSpend"
            }
          },
          "creditsMicro": {
            "type": "integer",
            "format": "int64"
          },
          "media": {
            "$ref": "#/components/schemas/MediaReport"
          }
        }
      },
      "ChannelOutcome": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string"
          },
          "total": {
            "type": "integer",
            "format": "int64"
          },
          "byStatus": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int64"
            }
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusPoint"
            }
          },
          "failureReasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reason"
            }
          },
          "verified": {
            "type": "integer",
            "format": "int64"
          },
          "verifiedShare": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "MessagesReport": {
        "type": "object",
        "properties": {
          "from": {
            "type": "integer",
            "format": "int64"
          },
          "to": {
            "type": "integer",
            "format": "int64"
          },
          "granularity": {
            "type": "string",
            "enum": [
              "HALF_HOUR",
              "HOUR",
              "DAY"
            ]
          },
          "reference": {
            "type": "string"
          },
          "channels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChannelOutcome"
            }
          }
        }
      },
      "StatusPoint": {
        "type": "object",
        "properties": {
          "startEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "byStatus": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int64"
            }
          }
        }
      },
      "FailuresPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Failure"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ApiPageDTOApiMediaDTO": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiMediaDTO"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "MeDTO": {
        "type": "object",
        "properties": {
          "keyId": {
            "type": "string"
          },
          "keyName": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expiresEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "addressRestricted": {
            "type": "boolean"
          }
        }
      },
      "ApiPageDTOApiEmailMessageDTO": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiEmailMessageDTO"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ApiContactAttributeDTO": {
        "type": "object",
        "properties": {
          "slot": {
            "type": "integer",
            "format": "int32"
          },
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "dataType": {
            "type": "string"
          },
          "filterable": {
            "type": "boolean"
          }
        }
      },
      "ApiPageDTOApiCampaignDTO": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiCampaignDTO"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ApiPageDTOApiRecipientDTO": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiRecipientDTO"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ApiRecipientDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "contactId": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "providerMessageId": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "queuedEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "sentEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "deliveredEpoch": {
            "type": "integer",
            "format": "int64"
          },
          "readEpoch": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ApiProblem": {
        "properties": {
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "description": "A key issued in the console under Settings > API keys.",
        "scheme": "bearer",
        "bearerFormat": "szk_<prefix>.<secret>"
      }
    }
  }
}
