{
    "openapi": "3.0.0",
    "info": {
        "title": "MessageFlow API",
        "version": "1.1.0"
    },
    "servers": [
        {
            "url": "https://api.messageflow.com",
            "description": "Production server"
        }
    ],
    "paths": {
        "/x-docsa-introduction": {
            "get": {
                "tags": [
                    "Introduction"
                ],
                "summary": "Introduction",
                "operationId": "docs-introduction",
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                },
                "description": "We are pleased to present you our new REST API. At the begining of this documentation we would like to give you some general informations about this API:\n\n- It's based on [JSONAPI](https://jsonapi.org/) specification. We hope that following the rules of this specification will make our API easy to understand.\n- This documentation is generated from swagger file - written in [OpenAPI 3.0.2 Specification](https://swagger.io/specification/)\n- This API always accept application/json format at the API input and always return the same format as output.\n\n## Returned data format\n\nAPI output always follows this scheme:\n```text\n{\n    \"meta\": {\n        \"numberOfErrors\": NUMBER_OF_ELEMENTS_IN_ERRORS (number),\n        \"numberOfData\": NUMBER_OF_ELEMENTS_IN_DATA (number),\n        \"status\": HTTP_STATUS (number),\n        \"uniqId\": UNIQUE_REQUEST_ID (string)\n        \"someField\": SOME_VALUE (string)\n    },\n    \"data\": [],\n    \"errors\": [\n        {\n            \"title\": ERROR_TITLE (string),\n            \"message\": ERROR_MESSAGE (string),\n            \"code\": ERROR_CODE (string),\n            \"meta\":{\n                \"parameter\": SOME_VALUE (string),\n                \"value\": SOME_VALUE (string),\n                \"source\": SOME_VALUE (string),\n                \"someField\": SOME_VALUE (string)\n            }\n        }\n    ]\n}\n```\n\nFollowing rules applies to the above scheme:\n* `meta` element is always present\n* `meta.numberOfErrors` indicates how many elements `errors` array includes\n* `meta.numberOfData` indicates how many elements `data` array includes\n* `meta.status` indicates response HTTP status\n* `meta.uniqId` is used to identify request, if your will have some troubles with your request, please make sure that you sent us `meta.uniqId` value\n* `meta.someField` may contain additional fields\n* `data` array cannot be present with `errors` array if status code is different from HTTP 207 (MULTI-STATUS)\n* `errors` array always consists object with fields: `title`, `message` and `code`.\n* `errors.meta` element may be present inside single error object and contain additional information (that can be parsed) about error\n* `errors.meta.parameter` the parameter that causes the error\n* `errors.meta.value` the value of this parameter passed\n* `errors.meta.source` a link to the entity that caused the error, e.g. externalId\n* `errors.meta.somefield` additional fields that may appear\n\n## Using filters\n\nThis API supports filters for `GET` methods. Almost all of these methods support two filters: `limit` and `offset`. They are used for pagination.\n\n* `limit` is used to limit number of elements that should API return\n* `offset` is used to omit number of elements from beginning\n\nOther frequently used filters are `dateFrom` and `dateTo`. Full list of available filters in specific request is always present in query parameters list and request examples.\n\nIn some `GET` methods you can also use additional filters, for example:\n\n* `getFullDate` is used to get pretty printed DateTime instead Timestamp, accept int values, 0 means get timestamp, 1 means get formated DateTime\n\n## Input compression\n\nThis API supports following compression algorithms: gzip.\nTo enable this feature just add following header to your request:\n\n```text\nContent-Encoding: gzip\n```\n\nNote that API always returns `application/json` response body.\n\nIn case of sending not compressed data with `Content-Encoding: gzip` header error will be returned.\n\n## REST clients samples\n\nTo make integration with our API clear, we have provided API definition in [YAML](https://dev.messageflow.com/openapi.yaml) and [JSON](https://dev.messageflow.com/openapi.json) format. All most popular REST clients support OpenAPI specification\nso you can import our API definition to your favourite client and start working with our API in minutes."
            }
        },
        "/x-docsa-quick-start": {
            "get": {
                "tags": [
                    "Quick Start"
                ],
                "summary": "Quick Start",
                "operationId": "docs-quick-start",
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                },
                "description": "### 1. Create a MessageFlow Account\n\n- Register: [https://app.messageflow.com/register](https://app.messageflow.com/register)\n- Confirm email and phone number\n- Fill in company details\n- Select the services you want to use\n- Wait for our team to activate your account.\n\n### 2. Generate an API Key\n\n- Navigate to the `Account` -> `Settings` -> `API` tab\n- Click `New API Key`\n- Name the key and set permissions\n- Optionally, configure a list of IP addresses authorized to use the key\n- Save the following values:\n    - `ApplicationKey`\n    - `Authorization`\n\n> Keep your credentials secure \u2014 they will be needed in code!\n\n> If you received \"Creating API keys impossible until account approved by customer service office\" error it might be that your account has not yet been activated. If this process takes longer than 3 hours, please contact our support team to verify your identity.\n\n---\n\n### 3. Email configuration\n\n**Domains authorization**\n\nImprove deliverability by proving to inbox providers that you own the domain you're sending from.\n\n- Select the `E-mail` tab from the top menu and navigate to `Common settings` -> `Senders authorization`\n\nMore information you can read [here](https://docs.messageflow.com/technical-support-center/senders-authorization/how-to-authorize-senders-in-messageflow/domains-authorization)\n\n**SMTP Account**\n\nTo get your personal `smtpAccount` navigate to `Email` -> `Email API` -> `Settings` -> `SMTP Accounts`\n\n### 4. SMS configuration\n\n**Sender ID**\n\nTo send an SMS, you must add `senderId`. Select the `SMS` tab from the top menu and navigate to -> `Common settings` -> `Sender IDs`. More information you can read [here](https://docs.messageflow.com/communication-channels-in-the-panel/sms/sms-common-settings/sender-ids)"
            }
        },
        "/x-docsa-authentication": {
            "get": {
                "tags": [
                    "Authentication"
                ],
                "summary": "Authentication",
                "operationId": "docs-authentication",
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                },
                "description": "Second version of VercomAPI offers authentication with pair of keys: Application-Key and Authorization. You can generate your keys in your account panel. To authenticate simply add to your request header with name `Authorization` and your authorization key as value (string of 128 characters length) and header with name `Application-Key` and your app key as value.\n\nExample:\n\n```bash\n$ curl --request POST \\\n  --header 'Content-Type: application/json' \\\n  --header 'Application-Key: ' \\\n  --header 'Authorization: ' \\\n  --url '...'\n  --data '{ ... }'  \n```\n\nIn case of problems with authentication, you will receive a response with the HTTP status code:\n```\nHTTP/1.1 401 Unauthorized\n```\nwith a response body containing details about the occurred error:\n```json\n{\n    \"errors\": [\n        {\n            \"title\": \"Empty token\",\n            \"message\": \"Cannot find token in your request. Did you set 'Authorization' header?\",\n            \"code\": \"E-0-004\"\n        }\n    ],\n    \"meta\": { }\n}\n```"
            }
        },
        "/x-docsa-mcp-integration": {
            "get": {
                "tags": [
                    "MCP"
                ],
                "summary": "MCP Integration",
                "operationId": "docs-mcp-integration",
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                },
                "description": "MessageFlow provides an [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) server that lets AI assistants - such as Cursor, Claude Desktop, or other MCP-compatible clients - call MessageFlow API operations as tools. The server is a thin proxy: it does not store your API keys and validates them against the MessageFlow API on every request.\n\n## Server URL\n\n```\nhttps://api-mcp.messageflow.com/mcp\n```\n\n## Authentication\n\nUse the same API keys as for the REST API (`Authorization` and `Application-Key`). Pass them as HTTP headers with every MCP request. The server forwards them to the MessageFlow API and does not persist them.\n\n| Header            | Description                                      |\n|-------------------|--------------------------------------------------|\n| `Authorization`   | Your authorization key (128-character string)    |\n| `Application-Key` | Your application key                             |\n\nGenerate keys in the MessageFlow panel under **Account -> Settings -> API** (see [Authentication](#/operations/docs-authentication) above).\n\n## Available tools\n\nThe server exposes 7 tools for sending messages, checking delivery status, and managing contacts, plus 2 channel tools (RCS and Viber) that appear only when the channel is available:\n\n| Tool | Description |\n|------|-------------|\n| `messageflow_send_sms` | Send a single SMS. Returns `message_id` for status checks. Not idempotent - each call creates a new message. |\n| `messageflow_get_sms_status` | Check SMS delivery status by `message_id`. Wait at least 30 seconds after sending before the first check. |\n| `messageflow_send_email` | Send a single email. Requires `confirmSend: true`. Returns `message_id` for status checks. |\n| `messageflow_get_email_status` | Check email delivery status by `message_id`. Read-only. |\n| `messageflow_list_contacts` | List or search contacts. All filters are optional. Read-only and idempotent. |\n| `messageflow_add_contacts` | Create one or more contacts (at least `email` or `phoneNumber` required). |\n| `messageflow_update_contacts` | Update existing contacts by `externalId`. |\n| `messageflow_send_rcs` | Send a single RCS message (text, rich card, or file) to one recipient. Requires `confirmSend: true`. Not idempotent. No status tool. |\n| `messageflow_send_viber` | Send a single Viber message to up to 200 receivers. Requires `confirmSend: true`. Not idempotent. No status tool. |\n\n## RCS messages\n\n`messageflow_send_rcs` sends one RCS message.\n\n- **Availability:** the tool is listed only when your API key has at least one active RCS agent (see `GET /v3.0/rcs/agents`). If your account has no active agent, the tool does not appear.\n- **Recipient:** one phone number in E.164 format with a leading `+`, for example `+48505551234`.\n- **Agent:** `agentId` must be one of your active agents. If omitted, the first active agent is used.\n- **Content:** exactly one of:\n  - `text` - plain text, 1-3072 characters,\n  - `richCard` - a `standalone` card or a `carousel` of 2-4 cards,\n  - `file` - a media attachment.\n- **Suggestions:** optional reply and action chips (up to 11 per message, up to 4 per card). Actions: open URL, dial, view location, create calendar event.\n- **Files and media:** the URL must be publicly reachable over `http` or `https`. Files up to 100 MB (jpg, jpeg, png, gif, mp4, webm, mp3, ogg, pdf). Card media up to 20 MB (jpg, jpeg, png, gif, mp4, webm).\n- **Delivery status:** there is no RCS status tool. The returned `external_id` cannot be used with `messageflow_get_sms_status` or `messageflow_get_email_status`.\n\n## Viber messages\n\n`messageflow_send_viber` sends one Viber message.\n\n- **Availability:** the tool is listed only when your API key has Viber permission and at least one registered Viber sender. If the key has no Viber permission, no registered sender, or the sender list cannot be loaded, the tool does not appear. Other tools are not affected.\n- **Receivers:** up to 200 per call, in international format without a leading `0`, for example `48505551234`. A leading `+`, spaces and separators are removed. Duplicates are removed. Numbers starting with `0` or `00` are rejected, not guessed.\n- **Sender:** `sender` must be one of your registered Viber sender names. If omitted, the server uses the first name in case-sensitive alphabetical order.\n- **Content:** exactly one of the following combinations. No other combination is accepted, so an image with text always needs a button:\n  - `text` - text only (up to 1000 characters),\n  - `image` - image only,\n  - `textWithAction` - text with a button,\n  - `imageTextWithAction` - image, text and a button.\n- **Images and buttons:** image URLs must use `https` and end in `.jpg`, `.jpeg` or `.png`. Button target URLs must use `https`.\n- **Partial success:** some receivers can be accepted while others are rejected. Rejected receivers are reported by their position in the list, never by phone number. Acceptance means the message was queued, not delivered.\n- **Delivery status:** there is no Viber status tool. The returned `external_id` identifies the whole send, not individual receivers, and cannot be used with the SMS or email status tools. Delivery reports are available through [Viber webhooks](#/operations/docs-incoming-webhooks).\n\n## Cursor configuration\n\nOpen **Cursor -> Settings -> MCP** or edit `~/.cursor/mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"messageflow\": {\n      \"url\": \"https://api-mcp.messageflow.com/mcp\",\n      \"headers\": {\n        \"Authorization\": \"your-authorization-key\",\n        \"Application-Key\": \"your-application-key\"\n      }\n    }\n  }\n}\n```\n\nAfter saving, Cursor connects automatically. Tools appear in the MCP panel (left sidebar) as `messageflow_*`. If they do not show up, restart the editor or reload the window.\n\n## Other MCP clients\n\nAny client that supports MCP over HTTP can use the same URL and headers. Refer to your client's documentation for the exact configuration format."
            }
        },
        "/x-docsa-long-running-actions---retry-after": {
            "get": {
                "tags": [
                    "Long running actions - Retry-After"
                ],
                "summary": "Long running actions - Retry-After",
                "operationId": "docs-long-running-actions---retry-after",
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                },
                "description": "This API provide some actions that should be used in different way. When we have to deal with long running tasks we don't want to make client wait. To resolve this case we provided support for `Retry-After` header. How it works? Pretty simple:\n\n1. Client executes long running action (ex. POST /long-running)\n2. If response data is available then response with HTTP status 200 and data array is returned\n3. If request is not yet available API returns following response:\n\n```text\nHTTP/1.1 202 ACCEPTED\n\nContent-Type: application/json\nRetry-After: <delay-seconds>\nExpires: <http-date>\n\n...\n```\nAnd here we have to explain the meaning of above response headers:\n\n* `HTTP/1.1 202 ACCEPTED` indicates that response is not yet available\n* `Retry-After` indicates how long client should wait before making next request to this endpoint\n* `Expires` contains the date/time after which the response is considered stale (client should NOT make another request to this endpoint after time specified at this header)\n\nThat all. Pretty simple. Isn't it?"
            }
        },
        "/x-docsa-dynamic-e-mail-content": {
            "get": {
                "tags": [
                    "Dynamic e-mail content"
                ],
                "summary": "Dynamic e-mail content",
                "operationId": "docs-dynamic-e-mail-content",
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                },
                "description": "Our API allows for inserting dynamic content into Email templates. This removes the need to create individual templates for particular recipients. All you have to do is create a single, universal template and use an API request to insert relevant data.\n\n### Email template\nThe options available with templates are:\n\n**Simple content insertion**  \nIf you wish to use a predefined variable in a template and actually display its value:\n```html\n<html>\n    <body>\n        Dear {{ name }},\n        We are pleased to inform you that \u2026\n    </body>\n</html>\n```\n**Conditional instructions**  \nIf you\u2019re unsure whether the variable will always be set or would like to differentiate a part of the template depending on the variable\u2019s value, use conditional instructions:\n```html\n<html>\n    <body>\n        {% if name %}\n            Dear {{ name }},\n        {% elseif sex == 'male' %}\n            Dear Sir,\n        {% elseif sex == 'female' %}\n            Dear Madam,\n        {%else%}\n            Dear Sir/Madam,\n        {% endif %}\n\n        We are pleased to inform you that \u2026\n    </body>\n</html>\n```\nConditional instructions can contain the following operators: `==`, `!=`, `<`, `<=`, `>`, `>=`\n\n**Loops**  \nOur interface also allows for passing on datasets (product lists, for example) and dynamically generating content for each of its elements:\n```html\n<p>List of available products:</p>\n<ul>\n    {% for product in products %}\n    <li>\n        <b>{{product.name}}</b> - <span>{{product.color}}</span>\n    </li>\n    {% endfor %}\n</ul>\n```\n### Passing on data used in the dynamic content\nData can be passed on for both a specific recipient, using the `vars` field, and an entire request using `globalVars` field:\n\n```json\n{\n  \"subject\": \"Test email subject\",\n  \"smtpAccount\": \"1.test.smtp\",\n  \"from\": {\"email\": \"sender@acmedomain.com\", \"name\": \"Sender Name\"},\n  \"globalVars\": {\n    \"products\": [\n      {\n        \"name\": \"skirt\",\n        \"id\": 1,\n        \"color\": \"green\"\n      },\n      {\n        \"name\": \"hoodie\",\n        \"id\": 6,\n        \"color\": \"red\"\n      }\n    ]\n  },\n  \"to\": [\n    {\n      \"email\": \"jane.doe@acmedomain.com\",\n      \"messageId\": \"janedoe00001id@acmedomain.com\",\n      \"vars\": {\n        \"name\": \"Jane\",\n        \"sex\": \"female\"\n      }\n    }\n  ]\n}\n```"
            }
        },
        "/x-docsa-sms-billing": {
            "get": {
                "tags": [
                    "SMS Billing"
                ],
                "summary": "SMS Billing",
                "operationId": "docs-sms-billing",
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                },
                "description": "Sms billing table. [GSM-7](https://en.wikipedia.org/wiki/GSM_03.38#GSM_7-bit_default_alphabet_and_extension_table_of_3GPP_TS_23.038_.2F_GSM_03.38) characters are standard characters used in SMS messages. The use of other characters significantly shortens the length of individual messages. The tables below illustrate this rule.\n\n| Only GSM7 characters   | SMS count |\n|------------------------|-----------|\n| 1 - 160 characters     |     1     |\n| 161 - 306 characters   |     2     |\n| 307 - 459 characters   |     3     |\n| 460 - 612 characters   |     4     |\n| 613 - 765 characters   |     5     |\n| 766 - 918 characters   |     6     |\n| 919 - 1071 characters  |     7     |\n| 1072 - 1224 characters |     8     |\n| 1225 - 1377 characters |     9     |\n\n\n| Characters not included in the GSM7 table | SMS count |\n|-------------------------------------------|-----------|\n| 1 - 70 characters                         |     1     |\n| 71 - 134 characters                       |     2     |\n| 135 - 201 characters                      |     3     |\n| 202 - 268 characters                      |     4     |\n| 269 - 335 characters                      |     5     |\n| 336 - 402 characters                      |     6     |\n| 403 - 469 characters                      |     7     |\n| 470 - 536 characters                      |     8     |\n| 537 - 603 characters                      |     9     |"
            }
        },
        "/x-docsa-incoming-webhooks": {
            "get": {
                "tags": [
                    "Incoming webhooks"
                ],
                "summary": "Incoming webhooks",
                "operationId": "docs-incoming-webhooks",
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                },
                "description": "Listen for events on your account so your integration can automatically trigger reactions.\n\nIt is possible to receive delivery and/or click and/or open statuses of all your sendouts from different channels of communication via webhook. A webhook enables us to push real-time notifications to your app. We use HTTPS to send these notifications to your app as a JSON payload. You can then use these notifications to execute actions in your backend systems. Webhooks are particularly useful for sendouts in which you wish to act on the event or display information about delivery in your systems as soon as possible. Alternatively when you need very detailed status information for each message for a large dataset that cannot be found in our panel (for example due to TTL).\n\n## Steps to configure webhooks\n1. Identify the events you want to monitor and the event payloads to parse (payloads are described below).\n2. Create a webhook endpoint as an HTTPS endpoint (URL) on your server.\n3. Handle requests by saving each event object (parse it later) and returning 200 response status codes with a string message 'ok'.\n4. Test that your webhook endpoint is working properly using settings in our panel\n5. Save your webhook configuration in panel\n\n## Step 1: Identify the events to monitor\nThe events you can monitor are dependent on your plan and features that you use. The full list is available in the configuration page in our panel under *Account -> Settings -> Webhooks*.\n\nA webhook URL is not the only switch \u2014 tracking settings also decide which events you get (see Transactional e-mails and Transactional SMS - clicked link below). If you only want delivery reports, disable tracking or ignore engagement events in your handler.\n\n## Step 2: Create a webhook endpoint\nGenerally you can specify two URLs for each webhook type. Default URL and secondary URL. Unless specified otherwise (in send request), the webhook will be sent to the main URL and when it\u2019s unavailable or fails to respond properly, to the secondary URL.\n\n## Step 3: Handle requests\nThe data is provided in a POST request that consists of an array of events. Each event is structured as an event object but its structure varies in accordance to the type of the event (see below for detailed descriptions for each type). Your endpoint should:\ncheck the authorization (in accordance to the setting in panel),\nsave the payload,\nrespond with\n```text\nHTTP/1.1 200 OK\n```\n\nYour server should NOT validate the payload before giving the response. The only reasons to respond with something other than success should be authorization failure or an actual internal server error. You should parse your stored payload data into intended structures in a different process (than the receiving endpoint).\nThe request timeout for webhooks is set to 500ms\n\nOur request can look like this:\n```json\n[{\n  \"externalId\":\"xxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"phoneNumber\":\"+48XXXXXXXXX\",\n  \"status\":1,\n  \"statusDesc\":\"DELIVERED\",\n  \"statusTime\":\"2021-04-27T00:00:18\",\n  \"webhookUrl\":\"xxxxxxxxxxxxxxx\"\n}]\n```\nor like this:\n```json\n[{\n  \"externalId\": \"xxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"appId\": \"xxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"platform\": 1,\n  \"status\": 1,\n  \"statusDesc\": \"Accepted by push operator\",\n  \"statusDetails\": \"NOTIFICATION_CLICK_ACTION\",\n  \"statusTime\": \"2020-12-08T11:57:08\",\n  \"actionId\": null,\n  \"code\":null\n}]\n```\nThe specific fields depend on the type of webhook (see below).\n\n### Authorization\n\nMake sure that the webhooks actually come from us and stay secure.\nIn the panel you can see 2 options for authentication:\n- None\n- Basic auth.\n\nWhether you choose to additionally use basic auth or not, you should always check the hash of incoming webhook. With our POST request, in addition to the standard HTTP headers, we send three headers will allow you to verify if the data actually come from us:\n\n| Header             | Type   | Description                       |\n|--------------------|--------|-----------------------------------|\n| X-Webhook-Date     | string | Date on which the webhook is sent |\n| X-Webhook-Checksum | string | Checksum                          | \n| Request-Id         | string | Unique request ID                 |\n\nNow, the checksum is generated from a string built like this:\n```\nsecretkey|X-Webhook-Date|Request-Id\n```\n\n| Value          | Description                                                            |\n|----------------|------------------------------------------------------------------------|\n| secretkey      | is a key given to you when you configure your webhook inside the panel |\n| X-Webhook-Date | from headers                                                            |\n| Request-Id     | from headers                                                            |\n\nand `SHA1` is used as hash functions. \n\nAdditionally, you can protect your script with basic auth. All you need to do is turn the option on and set login and password in the panel. Then, of course, add authentication to your endpoint.\n\n### Webhook types and event object structures\n#### Transactional e-mails\n| Field                     | Type          | Example                                         |\n|---------------------------|---------------|-------------------------------------------------|\n| subject                   | string        | Your chosen subject                             |\n| smtpAccount               | string        | 1.accountname.smtp                              |\n| to                        | object        |                                                 |\n| to[email]                 | string        | test@test.com                                   |\n| to[name]                  | string        | Jane Doe                                        |\n| to[messageId]*            | string        | d18aa9aa-109e-1b16-a52d-205eac42e44a@domain.com |\n| from                      | object        |                                                 |\n| from[email]               | string        | test@domain.com                                 |\n| from[name]                | string        | Test Corp.                                      |\n| tags                      | array \\| null | [tag1,tag2]                                     |\n| status                    | string        | dropped                                         |\n| statusTime                | int           | 1580996271                                      |\n| statusDesc                | string        | test@test.com in blacklist                      |\n| allStatuses               | object[]      |                                                 |\n| allStatuses[][status]     | string        | injected                                        |\n| allStatuses[][statusTime] | int           | 1580996275                                      |\n| allStatuses[][statusDesc] | string        | injected                                        |\n\n*Remember to use unique message_ids so that you can later aggregate all the webhooks (with consecutive statuses).\n\nTransactional email webhooks use **one URL** for delivery and engagement. Delivery statuses match **Get email statuses**. `click` / `open` are extra events on the same endpoint when tracking is enabled for that SMTP account (panel: SMTP / transactional settings). Link tracking is on by default for API sendouts; disable per request with `X-TRACKING-OFF: 1` (see Send emails).\n\nValues for field `status`:\n\n| Value       | Type        | Meaning |\n|-------------|-------------|---------|\n| ok          | delivery    | Message was delivered. |\n| injected    | delivery    | Message was accepted by the sending pipeline. |\n| hardbounce  | delivery    | Permanent bounce. |\n| softbounce  | delivery    | Temporary bounce. |\n| spambounce  | delivery    | Message rejected as spam. |\n| dropped     | delivery    | Message was not sent (e.g. recipient on blacklist). |\n| deferred    | delivery    | Delivery postponed. |\n| click       | engagement  | Recipient clicked a tracked link. Sent only when **link tracking** is on. |\n| open        | engagement  | Recipient opened the message. Sent only when **open tracking** is on. |\n\nexample:\n```json\n[\n{\n      \"subject\": \"Your chosen subject\",\n      \"smtpAccount\": \"1.accountname.smtp\",\n      \"to\": {\n        \"email\": \"test@test.com\",\n        \"name\": \"Jane Doe\",\n        \"messageId\": \"d18aa9aa-109e-1b16-a52d-205eac42e44a@domain.com\"\n      },\n      \"from\": {\n        \"email\": \"test@domain.com\",\n        \"name\": \"Test Corp.\"\n      },\n      \"tags\": null,\n      \"status\": \"dropped\",\n      \"statusTime\": 1580996271,\n      \"statusDesc\": \"test@test.com in blacklist\",\n      \"allStatuses\": [\n        {\n          \"status\": \"injected\",\n          \"statusTime\": 1580996275,\n          \"statusDesc\": \"injected\"\n        },\n        {\n          \"status\": \"dropped\",\n          \"statusTime\": 1580996271,\n          \"statusDesc\": \"test@test.com in blacklist\"\n        }\n      ]\n    }\n]\n```\n#### Transactional SMS - delivery reports\n| Field        | Type   | Example                   |\n|--------------|--------|---------------------------|\n| externalId   | string | test123                   |\n| phoneNumber  | string | +48111222333              |\n| status       | int    | 1 or 2                    |\n| statusDesc   | string | DELIVERED or UNDELIVERED  |\n| statusTime   | string | 2021-12-12T12:12:12       |\n| webhookUrl*  | string | https://test.pl/test.aspx |\n\n*This object contains a `webhookUrl` field because, when sending transactional SMS it is possible to specify a webhook URL inside send request directly. In that case, both default URL and secondary URL configured in the panel will be ignored and the webhook will be sent to this, additionally specified, URL.\n\nexample:\n```json\n[{\n  \"externalId\":\"xxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"phoneNumber\":\"+48XXXXXXXXX\",\n  \"status\":1,\n  \"statusDesc\":\"DELIVERED\",\n  \"statusTime\":\"2021-04-27T00:00:18\",\n  \"webhookUrl\":\"xxxxxxxxxxxxxxx\"\n}]\n```\n\n#### Transactional SMS - clicked link\n\n| Field        | Type   | Example                                                                                                          |\n|--------------|--------|------------------------------------------------------------------------------------------------------------------|\n| externalId   | string | test123                                                                                                          |    | phoneNumber  | string | +48111222333                                                                                                     |\n| url          | string | http://www.test.pl/kontact/?place=menu                                                                           |\n| clickTime    | string | 2021-12-12T12:12:12                                                                                              |\n| ip           | string | 111.222.11.22                                                                                                    |\n| userAgent    | string | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/xxx.xx (KHTML, like Gecko) Chrome/xxx.xx.xxx.xx Safari/xxx.xx Google |\n| webhookUrl*  | string | https://test.pl/test.aspx                                                                                        |\n\n*This object contains a `webhookUrl` field because, when sending transactional SMS it is possible to specify a webhook URL inside send request directly. In that case, both default URL and secondary URL configured in the panel will be ignored and the webhook will be sent to this, additionally specified, URL.\n\n#### 2-way communication - Incoming SMS\n\n| Field       | Type   | Example                              |\n|-------------|--------|--------------------------------------|\n| id          | string | F2D21CA2-916E-4B92-B686-606231D9165F |\n| phoneNumber | string | +48111222333                         |\n| message     | string | Thank You                            |\n| ndi         | string | 48111222333                          |\n| statusTime  | string | 2021-11-15T12:25:32                  |\n\n#### Push messages - delivery reports\n\n| Field         | Type   | Example                              |\n|---------------|--------|--------------------------------------|\n| externalId    | string | xxxxxxxxxxxxxxxxxxxxxxxx             |\n| appId         | string | xxxxxxxxxxxx                         |\n| platform      | int    | 1                                    |\n| status        | int    | 1                                    |\n| statusDesc    | string | Accepted by push operator            |\n| statusDetails | string | NOTIFICATION_CLICK_ACTION            |\n| actionId      | int    | 1                                    |\n| code          | string | null                                 |\n| statusTime    | string | 2021-11-15T12:25:32                  |\n\nValues for field `platform`:\n\n|   |         |\n|---|---------|\n| 1 | IOS     |\n| 2 | ANDROID |\n\nValues for field `status`:\n\n|   |            |\n|---|------------|\n| 1 | DISCARDED  |\n| 2 | SCHEDULED  |\n| 3 | SENT       |\n| 4 | FAILED     |\n| 5 | RECEIVED   |\n| 6 | REACTED_ON |\n\nValues for field `statusDesc`:\n\n|            |                                     |\n|------------|-------------------------------------|\n| DISCARDED  | \"Push validation failed\"            |\n| SCHEDULED  | \"Push accepted by push operator\"    |\n| SENT       | \"Push accepted by FCM/APNS servers\" |\n| FAILED     | \"Push dropped by FCM/APNS\"          |\n| RECEIVED   | \"Push received by device\"           |\n| REACTED_ON | \"User reacted on push\"              |\n\nValues for field `statusDetails`:\n\n|                           |\n|---------------------------|\n| NOTIFICATION_CLICK_ACTION |\n| NOTIFICATION_SWIPE_ACTION |\n| DIALOG_DISSMISS_ACTION    |\n\nexample:\n```json\n[{\n  \"externalId\": \"xxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"appId\": \"xxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"platform\": 1,\n  \"status\": 1,\n  \"statusDesc\": \"Accepted by push operator\",\n  \"statusDetails\": \"NOTIFICATION_CLICK_ACTION\",\n  \"statusTime\": \"2020-12-08T11:57:08\",\n  \"actionId\": null,\n  \"code\":null\n}]\n```\n\n#### Viber messages - delivery reports\n\n| Field       | Type   | Example                                     |\n|-------------|--------|---------------------------------------------|\n| externalId  | string | xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx |\n| messageId   | string | xxxxxxxxxxxxxxxxxxxx                        |\n| receiver    | string | 48XXXXXXXXX                                 |\n| statusDesc  | string | DELIVERED, OPENED or EXPIRED                |\n| statusTime  | string | 2025-08-29T09:53:34.249 (UTC timezone, +0)  |\n\nThere are 3 types of webhooks possible, depending on the `statusDesc` field provided:\n\n- **DELIVERED** - the message has been delivered to the device\n- **OPENED** - the message has been seen by the user on device  \n- **EXPIRED** - the message validity period has expired, default validity 86400 seconds (24 hours). The message is waiting for delivery before the specified time (until the client is available in the network). After this time, the message will be marked as expired and discarded and a webhook will be sent with the EXPIRED status.\n\n**Event object structures:**\n\n- `externalId` (string) - unique ID for request sent via API\n- `messageId` (string) - unique ID for every single message\n- `receiver` (string) - destination mobile number the message was sent to\n- `statusDesc` (string) - webhook type\n- `statusTime` (string) - when the event was completed in UTC timezone\n\nExample:\n```json\n[{\n  \"externalId\": \"xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx\",\n  \"messageId\": \"xxxxxxxxxxxxxxxxxxxx\",\n  \"receiver\": \"48XXXXXXXXX\",\n  \"statusDesc\": \"OPENED\",\n  \"statusTime\": \"2025-08-29T09:53:34.249\"\n}]\n```\n\n#### Email campaign webhooks\n\n| Field                | Type            | Example                                                                                                         |\n|----------------------|-----------------|-----------------------------------------------------------------------------------------------------------------|\n| id                   | string          | 345dfsg2-dfws-w451-1245-sdfgsdf23441                                                                            |\n| contact              | object          |                                                                                                                 |\n| contact[externalId]  | string          | 78b556af-c01b-4341-8059-f5ce08f5ad14                                                                            |\n| contact[email]       | string          | test@domain.com                                                                                                 |\n| contact[phoneNumber] | string          | +48111222333                                                                                                    |\n| campaign             | object          |                                                                                                                 |\n| campaign[externalId] | string          | DFG2345T-3456-6734-6345-FHDF65341235                                                                            |\n| status               | object          |                                                                                                                 |\n| status[id]           | int             | 4                                                                                                               |\n| status[desc]         | string          | CLICKED                                                                                                         |\n| status[time]         | string          | 2023-08-08T11:15:53.053                                                                                         |\n| details              | object          |                                                                                                                 |\n| details[id]          | int nullable    | 2                                                                                                               |\n| details[desc]        | string nullable | HARD_BOUNCE                                                                                                     |\n| details[ip]          | string nullable | 100.20.30.400                                                                                                   |\n| details[userAgent]   | string nullable | Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 |\n| details[referer]     | string nullable | https://messageflow.com/                                                                                         |\n\nExample:\n```json\n{\n    \"id\": \"345dfsg2-dfws-w451-1245-sdfgsdf23441\",\n    \"contact\": {\n        \"externalId\": \"78b556af-c01b-4341-8059-f5ce08f5ad14\",\n        \"email\": \"test@domain.com\",\n        \"phoneNumber\": \"+48111222333\"\n    },\n    \"campaign\": {\n        \"externalId\": \"DFG2345T-3456-6734-6345-FHDF65341235\"\n    },\n    \"status\": {\n        \"id\": 4,\n        \"desc\": \"CLICKED\",\n        \"time\": \"2023-08-08T11:15:53.053\"\n    },\n    \"details\": {\n        \"id\": null,\n        \"desc\": null,\n        \"ip\": \"100.20.30.400\",\n        \"userAgent\": \"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36\",\n        \"referer\": \"https://messageflow.com/\"\n    }\n}\n```\n\nValues for field `status`:\n\n| id | desc      |\n|----|-----------|\n| 0  | SENT      |\n| 1  | DELIVERED |\n| 2  | FAILED    |\n| 3  | RECEIVED  |\n| 4  | CLICKED   |\n\nValues for field `details`:\n\n| id | desc                       |\n|----|----------------------------|\n| 1  | TRANSIENT                  |\n| 2  | HARD_BOUNCE                |\n| 3  | AUTO_RESPONDER             |\n| 4  | ADDRESS_CHANGE             |\n| 5  | CHALLENGE_VERIFICATION     |\n| 6  | DNS_ERROR                  |\n| 7  | SPAM_NOTIFICATION          |\n| 8  | OPEN_RELAY_TEST            |\n| 9  | UNKNOWN                    |\n| 10 | SOFT_BOUNCE                |\n| 11 | VIRUS_NOTIFICATION         |\n| 12 | CANCELLED                  |\n| 13 | CUSTOM_SMTP_SERVER_ERROR   |\n| 14 | REDLINK_SMTP_SERVER_ERROR  |\n| 15 | REDLINK_SMTP_EMAIL_TOO_BIG |\n| 16 | INSUFFICIENT_FUNDS         |\n| 17 | LIMIT_EXCEEDED             |\n| 18 | CONTROL_GROUP              |\n| 19 | CAPPING_LIMIT_EXCEEDED     |\n\n#### Sms campaign webhooks\n\n| Field                | Type            | Example                                                                                                         |\n|----------------------|-----------------|-----------------------------------------------------------------------------------------------------------------|\n| id                   | string          | 345dfsg2-dfws-w451-1245-sdfgsdf23441                                                                            |\n| contact              | object          |                                                                                                                 |\n| contact[externalId]  | string          | 78b556af-c01b-4341-8059-f5ce08f5ad14                                                                            |\n| contact[email]       | string          | test@domain.com                                                                                                 |\n| contact[phoneNumber] | string          | +48111222333                                                                                                    |\n| campaign             | object          |                                                                                                                 |\n| campaign[externalId] | string          | DFG2345T-3456-6734-6345-FHDF65341235                                                                            |\n| status               | object          |                                                                                                                 |\n| status[id]           | int             | 4                                                                                                               |\n| status[desc]         | string          | CLICKED                                                                                                         |\n| status[time]         | string          | 2023-08-08T11:15:53.053                                                                                         |\n| details              | object          |                                                                                                                 |\n| details[id]          | int nullable    | 2                                                                                                               |\n| details[desc]        | string nullable | SMS_ERROR                                                                                                       |\n| details[ip]          | string nullable | 100.20.30.400                                                                                                   |\n| details[userAgent]   | string nullable | Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 |\n| details[referer]     | string nullable | https://messageflow.com/                                                                                         |\n\n\nExample:\n```json\n{\n    \"id\": \"345dfsg2-dfws-w451-1245-sdfgsdf23441\",\n    \"contact\": {\n        \"externalId\": \"78b556af-c01b-4341-8059-f5ce08f5ad14\",\n        \"email\": \"test@domain.com\",\n        \"phoneNumber\": \"+48111222333\"\n    },\n    \"campaign\": {\n        \"externalId\": \"DFG2345T-3456-6734-6345-FHDF65341235\"\n    },\n    \"status\": {\n        \"id\": 4,\n        \"desc\": \"CLICKED\",\n        \"time\": \"2023-08-08T11:15:53.053\"\n    },\n    \"details\": {\n        \"id\": null,\n        \"desc\": null,\n        \"ip\": \"100.20.30.400\",\n        \"userAgent\": \"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36\",\n        \"referer\": \"https://messageflow.com/\"\n    }\n}\n```\n\nValues for field `status`:\n\n| id | desc      |\n|----|-----------|\n| 0  | SENT      |\n| 1  | DELIVERED |\n| 2  | FAILED    |\n| 3  | RECEIVED  |\n| 4  | CLICKED   |\n\nValues for field `details`:\n\n| id | desc                     |\n|----|--------------------------|\n| 1  | SMS_CANCELED             |\n| 2  | SMS_ERROR                |\n| 3  | SMS_BAD_NUMBER           |\n| 4  | SMS_MESSAGE_TOO_LONG     |\n| 5  | SMS_MESSAGE_INCORRECT    |\n| 6  | SMS_WAITING              |\n| 7  | SMS_MESSAGE_TOO_SHORT    |\n| 8  | SMS_UNKNOWN_ERROR        |\n| 10 | SMS_ECO_AS_ABROAD_NUMBER |\n| 11 | SMS_ABROAD_NOT_ALLOWED   |\n| 12 | SMS_NOT_ALLOWED          |\n| 13 | INSUFFICIENT_FUNDS       |\n| 14 | SMS_SERVICE_FORBIDDEN    |\n| 15 | LIMIT_EXCEEDED           |\n| 16 | UNSUBSCRIBE              |\n| 17 | CONTROL_GROUP            |\n| 18 | CAPPING_LIMIT_EXCEEDED   |\n| 19 | MMS_SEND                 |\n| 20 | MMS_ERROR                |\n| 21 | MMS_BAD_NUMBER           |\n| 22 | MMS_MESSAGE_TOO_LONG     |\n| 23 | MMS_MESSAGE_INCORRECT    |\n| 24 | MMS_WAITING              |\n| 25 | MMS_MESSAGE_TOO_SHORT    |\n| 26 | MMS_UNKNOWN_ERROR        |\n| 27 | MMS_CANCELED             |\n\n\n#### Push campaign webhooks\n\n| Field                | Type            | Example                              |\n|----------------------|-----------------|--------------------------------------|\n| id                   | string          | 345dfsg2-dfws-w451-1245-sdfgsdf23441 |\n| contact              | object          |                                      |\n| contact[externalId]  | string          | 78b556af-c01b-4341-8059-f5ce08f5ad14 |\n| contact[email]       | string          | test@domain.com                      |\n| contact[phoneNumber] | string          | +48111222333                         |\n| campaign             | object          |                                      |\n| campaign[externalId] | string          | DFG2345T-3456-6734-6345-FHDF65341235 |\n| status               | object          |                                      |\n| status[id]           | int             | 4                                    |\n| status[desc]         | string          | CLICKED                              |\n| status[time]         | string          | 2023-08-08T11:15:53.053              |\n| details              | object          |                                      |\n| details[id]          | int nullable    | 1                                    |\n| details[desc]        | string nullable | NOTIFICATION_CLICK_ACTION            |\n| details[actionId]    | int nullable    | 3                                    |\n| details[actionDesc]  | string nullable | ACCEPT                               |\n| platform             | object          |                                      |\n| platform[id]         | int             | 1                                    |\n| platform[desc]       | string          | ANDROID                              |\n| platform[appId]      | int             | 50                                   |\n\n\nExample:\n```json\n{\n    \"id\": \"345dfsg2-dfws-w451-1245-sdfgsdf23441\",\n    \"contact\": {\n        \"externalId\": \"78b556af-c01b-4341-8059-f5ce08f5ad14\",\n        \"email\": \"test@domain.com\",\n        \"phoneNumber\": \"+48111222333\"\n    },\n    \"campaign\": {\n        \"externalId\": \"DFG2345T-3456-6734-6345-FHDF65341235\"\n    },\n    \"status\": {\n        \"id\": 4,\n        \"desc\": \"CLICKED\",\n        \"time\": \"2023-08-07T17:26:07\"\n    },\n    \"details\": {\n        \"id\": 1,\n        \"desc\": \"NOTIFICATION_CLICK_ACTION\",\n        \"actionId\": 3,\n        \"actionDesc\": \"ACCEPT\"\n    },\n    \"platform\": {\n        \"id\": 1,\n        \"desc\": \"ANDROID\",\n        \"appId\": 50\n    }\n}\n```\n\nValues for field `status`:\n\n| id | desc      |\n|----|-----------|\n| 0  | SENT      |\n| 1  | DELIVERED |\n| 2  | FAILED    |\n| 3  | RECEIVED  |\n| 4  | CLICKED   |\n\nValues for field `platform`:\n\n| id | desc    |\n|----|---------|\n| 1  | ANDROID |\n| 2  | IOS     |\n| 99 | OTHER   |\n\nValues for field `action`:\n\n| id | desc        |\n|----|-------------|\n| 1  | YES         |\n| 2  | NO          |\n| 3  | ACCEPT      |\n| 4  | DECLINE     |\n| 5  | BUY_NOW     |\n| 6  | LATER       |\n| 7  | ADD_TO_CART |\n| 8  | NO_THANKS   |\n| 9  | OPEN        |\n| 10 | CLOSE       |\n| 11 | LOGIN       |\n| 12 | SHARE       |\n| 13 | SEE_MORE    |\n\nValues for field `details`:\n\n| id | desc                            |\n|----|---------------------------------|\n| 1  | NOTIFICATION_CLICK_ACTION       |\n| 2  | NOTIFICATION_SWIPE_ACTION       |\n| 3  | DIALOG_DISMISS_ACTION           |\n| 4  | BAD_TOPIC                       |\n| 5  | METHOD_NOT_ALLOWED              |\n| 6  | TIMEOUT                         |\n| 7  | ALREADY_SENT                    |\n| 8  | BAD_COLLAPSE_ID                 |\n| 9  | DUPLICATE_HEADERS               |\n| 10 | INTERNAL_SERVER_ERROR           |\n| 11 | INVALID_PROVIDER_TOKEN          |\n| 12 | DEVICE_TOKEN_NOT_FOR_TOPIC      |\n| 13 | UNKNOWN_ERROR                   |\n| 14 | BAD_CERTIFICATE_ENVIRONMENT     |\n| 15 | INVALID_APNS_CREDENTIAL         |\n| 16 | SHUTDOWN                        |\n| 17 | INVALID_PARAMETERS              |\n| 18 | TOO_MANY_PROVIDER_TOKEN_UPDATES |\n| 19 | BAD_MESSAGE_ID                  |\n| 29 | NOT_REGISTERED                  |\n| 21 | BAD_EXPIRATION_DATE             |\n| 22 | TOPIC_DISALLOWED                |\n| 23 | PAYLOAD_TOO_LARGE               |\n| 24 | FORBIDDEN                       |\n| 25 | BAD_PATH                        |\n| 26 | INVALID_REGISTRATION            |\n| 27 | MESSAGE_TOO_BIG                 |\n| 28 | DEVICE_MESSAGE_RATE_EXCEEDED    |\n| 29 | INVALID_TTL                     |\n| 30 | BAD_CERTIFICATE                 |\n| 31 | TOO_MANY_REQUESTS               |\n| 32 | IDLE_TIMEOUT                    |\n| 33 | EXPIRED_PROVIDER_TOKEN          |\n| 34 | INVALID_PACKAGE_NAME            |\n| 35 | MISSING_PROVIDER_TOKEN          |\n| 36 | PAYLOAD_EMPTY                   |\n| 37 | BAD_PRIORITY                    |\n| 38 | BAD_DEVICE_TOKEN                |\n| 39 | MISSING_TOPIC                   |\n| 40 | MISSING_REGISTRATION            |\n| 41 | SERVICE_UNAVAILABLE             |\n| 42 | TOPICS_MESSAGE_RATE_EXCEEDED    |\n| 43 | UNREGISTERED                    |\n| 44 | MISSING_DEVICE_TOKEN            |\n| 45 | MISMATCH_SENDER_ID              |\n| 46 | UNAVAILABLE                     |\n| 47 | INVALID_DATA_KEY                |\n\n## Step 4: Test your webhook\nOnly after a successful test result can your webhook configuration be saved. Make sure the response from your endpoint contains\n```text\nHTTP/1.1 200 OK\n```\n\n## Step 5: Save your webhook configuration\n*Voil\u00e0!* You have configured your webhook integration."
            }
        },
        "/x-docsa-migration-to-newest-version": {
            "get": {
                "tags": [
                    "Migration to newest version"
                ],
                "summary": "Migration to newest version",
                "operationId": "docs-migration-to-newest-version",
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                },
                "description": "Development work on API versions v1 and v2 has been discontinued. New features and improvements will be available exclusively in API version v2.1. We encourage migration to the latest version to take advantage of the newest capabilities of our platform.\nMost endpoints from versions v1 and v2 are available in version v2.1 without changes. Below are the key changes and migration steps, for endpoints with modified behavior.\n\n## Backward compatible changes\n\n### Listing contacts\nIn version v2.1, the set of contact data returned in response to a query has changed. Previously, the following fields were returned in the response:\n```JSON\n{\n    \"id\": 1,\n    \"externalId\": \"0000000-1111-2222-3333-444444444444\",\n    \"firstName\": \"John\",\n    \"lastName\": \"Smith\",\n    \"email\": \"johnsmith@example.com\",\n    \"phoneNumber\": null,\n    \"companyName\": \"Company name\",\n    \"createdAt\": \"2025-03-18 12:47:45\",\n    \"externalData\": {\n        \"versionName\": \"1.5.0\",\n        \"storeId\": 22\n    },\n    \"archiveDate\": \"2025-11-20 10:12:30\",\n    \"inArchive\": true\n}\n```\nIn version v2.1, the response contains additional fields:\n```JSON\n{\n    \"id\": 1,\n    \"externalId\": \"0000000-1111-2222-3333-444444444444\",\n    \"firstName\": \"John\",\n    \"lastName\": \"Smith\",\n    \"email\": \"johnsmith@example.com\",\n    \"phoneNumber\": null,\n    \"companyName\": \"Company name\",\n    \"createdAt\": \"2025-03-18 12:47:45\",\n    \"externalData\": {\n        \"versionName\": \"1.5.0\",\n        \"storeId\": 22\n    },\n    \"inArchive\": true,\n    \"unsubscribeAllReason\": 4,\n    \"unsubscribeAllTime\": \"2025-11-20 10:12:30\",\n    \"unsubscribePushTime\": \"2025-11-20 10:12:10\",\n    \"unsubscribeEmailTime\": \"2025-11-20 10:12:10\",\n    \"unsubscribeSmsTime\": \"2025-11-20 10:12:10\",\n    \"isUnsubscribeSms\": true,\n    \"isUnsubscribeEmail\": true,\n    \"isUnsubscribePush\": true\n}\n```\nIn version v2.1, the response now includes unsubscribe dates, status for each communication channel (email, SMS, push), and the unsubscribe reason. The `archiveDate` field has been renamed to `unsubscribeAllTime`, but for backward compatibility, both fields are returned in the response.\nThe second change in this endpoint relates to the available filters. In version v2.1, the ability to filter contacts by unsubscribe status for individual communication channels has been added using the following parameters:\n\n| Field                     | Type    | \n|---------------------------|---------|\n| isUnsubscribeSms          | boolean |\n| isUnsubscribeEmail        | boolean |\n| isUnsubscribePush         | boolean |                                                 |\n\n### Unsubscribing and resubscribing contacts to the list\n\nIn versions v1 and v2, the unsubscribe endpoint had the form `POST /v1/contact/unsubscribe` and in practice completely unsubscribed the recipient from the list. With version v2.1, the ability to unsubscribe a recipient from only a selected communication channel has been added. Unsubscribing from channels is done via the endpoint `POST /v2.1/contact/unsubscribe/{channel}`. Available channels are `email`, `sms`, `push`, `all`.\nTo facilitate migration, the new version of the endpoint also supports the syntax without specifying the channel `POST /v2.1/contact/unsubscribe`. In this case, the endpoint will behave as if `POST /v2.1/contact/unsubscribe/all` was called, it will completely unsubscribe the recipient from the list.\n\nSimilarly to unsubscribing contacts, the endpoint for resubscribing contacts has changed to `POST /v2.1/contact/resubscribe/{channel}`.\n\n## Potentially backward incompatible changes\n\n### Sending SMS messages\n\nWhen migrating directly from version v1 to v2.1, the endpoints for sending SMS messages maintain backward compatibility. Changes in behavior are mainly limited to better error handling.\nIn version v1, data returned in case of an error looks like this:\n```JSON\n{\n  \"errors\": [\n    {\n      \"title\": \"Prefix not found\",\n      \"message\": \"Prefix for this number not found in your account: +9998666666666\",\n      \"code\": \"E-2-004\"\n    },\n    {\n      \"title\": \"Not found any SMS to send\",\n      \"message\": \"Not found any SMS to send\",\n      \"code\": \"E-0-999\"\n    }\n  ],\n  \"meta\": {\n    \"numberOfErrors\": 2,\n    \"numberOfData\": 0,\n    \"status\": 400,\n    \"uniqId\": \"xxxxxxxxxx\"\n  }\n}\n```\nWhile in version v2.1, the response looks like this:\n```JSON\n{\n  \"errors\": [\n    {\n      \"title\": \"Prefix not found\",\n      \"message\": \"Prefix for this number not found in your account: Prefix for this number not found in your account: +9998666666666\",\n      \"code\": \"E-2-004\",\n      \"meta\": {\n        \"source\": \"t861\",\n        \"parameter\": \"phoneNumber\",\n        \"value\": \"+9998666666666\"\n      }\n    },\n    {\n      \"title\": \"Not found any SMS to send\",\n      \"message\": \"Not found any SMS to send\",\n      \"code\": \"E-0-999\"\n    }\n  ],\n  \"meta\": {\n    \"sentSms\": 0,\n    \"notSentSms\": 1,\n    \"accountBalance\": null,\n    \"numberOfErrors\": 2,\n    \"numberOfData\": 0,\n    \"status\": 400,\n    \"uniqId\": \"xxxxxxxxxx\"\n  }\n}\n```\nThe changes mainly relates to the addition of new information in the `meta` section of the response, which allows for better understanding of error causes. In the main `meta` section, the fields `sentSms`, `notSentSms`, `accountBalance` have been added. A `meta` section has also been added to each error, where additional information about the error source, parameter name, and the value that caused the error is provided when necessary.\n\nWhen migrating from version v2 to v2.1, caution should be exercised, as version v2 had a modified duplicate handling mechanism. The biggest difference compared to the latest version is that in case of an incorrect sender name, the sending will be registered in the duplicate mechanism. This means that in practice, even though the message was not sent, it is not possible to retry using the same `externalId`. The difference is not significant, but in some billing scenarios it may matter."
            }
        },
        "/v2.1/campaign/mail": {
            "post": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "Send email campaign",
                "description": "Use this method to send emails to a group of contacts created through endpoint Create group method.",
                "operationId": "EmailCampaignSending",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/EmailCampaignInputObject"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "externalId": {
                                                        "type": "string"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/email/{campaignId}/report/click": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "Get email campaign clicks",
                "description": "Use this method to get details of email clicks from a certain date range. Please remember clicks are stored for 90 days.",
                "operationId": "EmailCampaignClickListing",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/dateFrom"
                    },
                    {
                        "$ref": "#/components/parameters/dateTo"
                    },
                    {
                        "$ref": "#/components/parameters/campaignId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmailCampaignClick"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/email": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "List email campaigns",
                "description": "Use this method to list all campaigns and its details from a certain time range.",
                "operationId": "EmailCampaignListing",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/dateFrom"
                    },
                    {
                        "$ref": "#/components/parameters/dateTo"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmailCampaign"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/email/{campaignId}/report/open": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "Get email campaign opens",
                "description": "Use this method to get details of email opens from a certain date range. Please remember opens are stored for 90 days.",
                "operationId": "EmailCampaignOrListing",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/dateFrom"
                    },
                    {
                        "$ref": "#/components/parameters/dateTo"
                    },
                    {
                        "$ref": "#/components/parameters/campaignId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmailCampaignOpen"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/email/report/recipient": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "List email campaign recipients",
                "description": "Use this method to get all recipients from the email campaign. You can filter recipients who have got bounce states as well.",
                "operationId": "EmailCampaignRecipientsListing",
                "parameters": [
                    {
                        "name": "campaignId",
                        "in": "query",
                        "description": "Search with campaign external ID. The search by campaignId does not work in conjunction with the date search. These two search options are incompatible and must be used separately.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "6F8EB428-0917-4DE7-BE1D-ACCD7432A4B8"
                    },
                    {
                        "name": "bouncesOnly",
                        "in": "query",
                        "description": "If true then action will return only bounced recipients",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "dateTo",
                        "in": "query",
                        "description": "Search with date (UTC timezone). The search by date does not work in conjunction with the search by campaignId. These two search options are incompatible and must be used separately.",
                        "schema": {
                            "type": "string",
                            "pattern": "/(^\\d{4}-\\d{2}-\\d{2})\\s(\\d{2}:\\d{2}:\\d{2})$/",
                            "example": "2025-01-03 00:00:00"
                        }
                    },
                    {
                        "name": "dateFrom",
                        "in": "query",
                        "description": "Search with date (UTC timezone). The search by date does not work in conjunction with the search by campaignId. These two search options are incompatible and must be used separately.",
                        "schema": {
                            "type": "string",
                            "pattern": "/(^\\d{4}-\\d{2}-\\d{2})\\s(\\d{2}:\\d{2}:\\d{2})$/",
                            "example": "2025-01-01 00:00:00"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/offset"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmailCampaignsRecipient"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/email/{campaignId}/report/unsubscribe": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "Get email campaign unsubscribe report",
                "description": "Use this method to get date of a click on unsubscribe link and the email address of the unsubscribed.",
                "operationId": "EmailCampaignUnsubscribeListing",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/dateFrom"
                    },
                    {
                        "$ref": "#/components/parameters/dateTo"
                    },
                    {
                        "$ref": "#/components/parameters/campaignId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmailCampaign"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/push": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "List push campaigns",
                "description": "Use this method to list all campaigns and its details from a certain time range.",
                "operationId": "PushCampaignListing",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/dateFrom"
                    },
                    {
                        "$ref": "#/components/parameters/dateTo"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PushCampaign"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/mail/{campaignId}": {
            "patch": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "Change email campaign state",
                "description": "Use this method if you want to change the status of an already prepared or launched campaign. You can only start or cancel campaign. Each campaign gets statuses like editing, redytosend, sending and sent. If you cancel campaign that have sending state it will get sent state.",
                "operationId": "ChangeStateOfEmailCampaign",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/campaignId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "state": {
                                        "type": "string",
                                        "enum": [
                                            "sendable",
                                            "canceled"
                                        ],
                                        "example": "sendable"
                                    },
                                    "scheduleTime": {
                                        "description": "The date the message will be set off. Be aware that if the campaign is going to be sent to many of recipients (thousands and more) the schedule date means then preparing all contacts firstly and then sending. For example, there is a campaign scheduled for 2020-01-01 10:00:00 so at 10 o'clock our system will start to collect all contacts from chosen group which can take sometimes more than an hour and then the messages will be sent to recipients. ",
                                        "type": "string",
                                        "pattern": "/^\\d{4}-\\d{2}-\\d{2}\\s*(?:\\d{2}:\\d{2}(?::\\d{2})?)?$/",
                                        "example": "2020-09-10 10:15:00"
                                    },
                                    "testAddresses": {
                                        "description": "The email addresses to send the campaign to see if the message is ok.",
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "example": "john.doe@example.pl"
                                        },
                                        "minItems": 1
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/email/{campaignId}": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "Get single email campaign",
                "description": "Use this method to get all details of certain email campaign such as subject, fromAddress, groupId, scheduleTime and more.",
                "operationId": "GettingSingleEmailCampaign",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/campaignId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/RunnableEmailCampaignOutputObject"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/sms/{campaignId}": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "Get single SMS campaign",
                "description": "Use this method to get all details of certain SMS campaign such as campaignId, senderId, message, scheduleTime and more.",
                "operationId": "GettingSingleSmsCampaign",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/campaignId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SingleSmsCampaign"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/sms/{campaignId}/report/click": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "Get sms campaign clicks",
                "description": "Use this method to get details of SMS clicks from a certain date range. Please remember clicks are stored for 90 days.",
                "operationId": "SmsCampaignClickListing",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/dateFrom"
                    },
                    {
                        "$ref": "#/components/parameters/dateTo"
                    },
                    {
                        "$ref": "#/components/parameters/campaignId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SmsCampaignClick"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/sms": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "List sms campaigns",
                "description": "Use this method to list all campaigns and its details from a certain time range.",
                "operationId": "SmsCampaignListing",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/dateFrom"
                    },
                    {
                        "$ref": "#/components/parameters/dateTo"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SmsCampaign"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/sms/{campaignId}/report/recipient": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "List sms campaign recipients",
                "description": "Use this method to get all recipients details from SMS campaign. Data is available for a maximum of 14 days from the campaign send date. Possible SMS status values: `SMS_SEND`, `SMS_ERROR`, `SMS_WAITING`, `SMS_CANCELED`, `SMS_BAD_NUMBER`, `SMS_MESSAGE_TOO_LONG`, `SMS_MESSAGE_INCORRECT`, `SMS_MESSAGE_TOO_SHORT`, `SMS_UNKNOWN_ERROR`",
                "operationId": "SmsCampaignRecipientsListing",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/campaignId"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/offset"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "array",
                                                "items": {
                                                    "$ref": "#/components/schemas/SmsCampaignsRecipient"
                                                }
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/campaign/sms/{campaignId}/report/state": {
            "get": {
                "tags": [
                    "Campaigns"
                ],
                "summary": "Get sms campaign state",
                "description": "Use this method to get sms campaign state. Available values: editing, readytosend, sending, sent and deliveredtosend.",
                "operationId": "SmsCampaignStateReport",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/campaignId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SmsCampaignsStateReport"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/push": {
            "post": {
                "tags": [
                    "Pushes"
                ],
                "summary": "Send push",
                "description": "Use this method to send mobile push notifications.",
                "operationId": "PushCreate",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PushInput"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PushResponseObject"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/contact/{id}/group": {
            "get": {
                "tags": [
                    "ContactGroupRelations"
                ],
                "summary": "List groups for contact",
                "description": "Use this method to list all groups that the contact belongs to.",
                "operationId": "ShowGroupsOfContact",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "The id of the contact.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "number"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "post": {
                "tags": [
                    "ContactGroupRelations"
                ],
                "summary": "Add group to contact",
                "description": "Use this method to add contact to an existing group.",
                "operationId": "AddGroupsToContact",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "The id of the contact.",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IdInput"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "delete": {
                "tags": [
                    "ContactGroupRelations"
                ],
                "summary": "Delete groups from contact",
                "description": "Action allows to delete groups from contact",
                "operationId": "DeleteGroupsFromContact",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "The id of the contact.",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IdInput"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/contact": {
            "get": {
                "tags": [
                    "Contacts"
                ],
                "summary": "List contacts",
                "description": "Use this method to get a list of all existing contacts.",
                "operationId": "ContactsListingV2",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/group"
                    },
                    {
                        "$ref": "#/components/parameters/id"
                    },
                    {
                        "$ref": "#/components/parameters/externalId"
                    },
                    {
                        "$ref": "#/components/parameters/phoneNumber"
                    },
                    {
                        "$ref": "#/components/parameters/email"
                    },
                    {
                        "$ref": "#/components/parameters/inArchive"
                    },
                    {
                        "$ref": "#/components/parameters/archiveDateTo"
                    },
                    {
                        "$ref": "#/components/parameters/archiveDateFrom"
                    },
                    {
                        "$ref": "#/components/parameters/isUnsubscribeSms"
                    },
                    {
                        "$ref": "#/components/parameters/isUnsubscribeEmail"
                    },
                    {
                        "$ref": "#/components/parameters/isUnsubscribePush"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ContactObjectV2"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "put": {
                "tags": [
                    "Contacts"
                ],
                "summary": "Update contact",
                "description": "Use this method to update details of certain contact.",
                "operationId": "UpdatingContacts",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/UpdateContactInput"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "post": {
                "tags": [
                    "Contacts"
                ],
                "summary": "Add contact",
                "description": "Use this method to create a new contact object.",
                "operationId": "AddingContacts",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/AddContactInput"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ShortContactObject"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "delete": {
                "tags": [
                    "Contacts"
                ],
                "summary": "Delete contact",
                "description": "Use this method to delete contact.",
                "operationId": "DeleteContact",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IdInput"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/contact/field": {
            "get": {
                "tags": [
                    "Contacts"
                ],
                "summary": "List contact's additional fields",
                "description": "Use this method to list all additional fields added as externalData in \u2018add contact\u2019 method.",
                "operationId": "AdditionalFieldListing",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AdditionalField"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/contact/segment": {
            "get": {
                "tags": [
                    "Segments"
                ],
                "summary": "List segments",
                "description": "Use this method to list all segments created in your account panel.",
                "operationId": "SegmentsListing",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Segment"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/contact/resubscribe/{channel}": {
            "post": {
                "tags": [
                    "Contacts"
                ],
                "summary": "Resubscribe contact",
                "description": "Use this method to resubscribe a contact from a single channel or all of them at once.",
                "operationId": "ResubscribeContact2_1",
                "parameters": [
                    {
                        "name": "channel",
                        "in": "path",
                        "description": "Set in url.",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "email",
                                "sms",
                                "push",
                                "all"
                            ]
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IdInput"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/contact/segment/{id}": {
            "get": {
                "tags": [
                    "Segments"
                ],
                "summary": "Get single segment",
                "description": "Use this method to get count of all contacts in the segment.",
                "operationId": "GetSingleSegment",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SegmentCount"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/contact/unsubscribe/{channel}": {
            "post": {
                "tags": [
                    "Contacts"
                ],
                "summary": "Unsubscribe contact",
                "description": "Use this method to unsubscribe a contact from a single channel or all of them at once.",
                "operationId": "UsubscribeContact2_1",
                "parameters": [
                    {
                        "name": "channel",
                        "in": "path",
                        "description": "Set in url.",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "email",
                                "sms",
                                "push",
                                "all"
                            ]
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IdInput"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/email/template": {
            "get": {
                "tags": [
                    "EmailTemplates"
                ],
                "summary": "Get template list",
                "description": "Use this method to list all created email templates.",
                "operationId": "GetTemplatesList",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/smtpAccount"
                    },
                    {
                        "$ref": "#/components/parameters/externalId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/TemplateObjectWithTime"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "post": {
                "tags": [
                    "EmailTemplates"
                ],
                "summary": "Add template",
                "description": "Use this method to add email template which you can use with the Send emails method.",
                "operationId": "AddingTemplates",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/TemplateObject"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "delete": {
                "tags": [
                    "EmailTemplates"
                ],
                "summary": "Delete template",
                "description": "Use this method to delete email templates.",
                "operationId": "DeleteTemplates",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ExtIdInputTemplates"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/email/aggregate": {
            "get": {
                "tags": [
                    "Emails"
                ],
                "summary": "Get statistics",
                "description": "Use this method to get email statistics.",
                "operationId": "GetAggregatedStatistics",
                "parameters": [
                    {
                        "name": "smtpAccount",
                        "in": "query",
                        "description": "The name of your smtp account.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "1.test.smtp"
                    },
                    {
                        "name": "dateFrom",
                        "in": "query",
                        "description": "The start date of the range as timestamp.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "dateTo",
                        "in": "query",
                        "description": "The end date of the range as timestamp.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "withTags",
                        "in": "query",
                        "description": "This field indicates whether the data should be aggregated by tags or not ( 1 - with aggregation, 0 - no aggregation ).",
                        "schema": {
                            "type": "integer"
                        },
                        "example": "1"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/email/domain/blacklist/{smtp}": {
            "get": {
                "tags": [
                    "EmailBlacklists"
                ],
                "summary": "Get blacklist domains",
                "description": "Use this method to list all domains that are on your blacklist.",
                "operationId": "GetDomainsFromBlacklist",
                "parameters": [
                    {
                        "name": "smtp",
                        "in": "path",
                        "description": "The name of your smtp account",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "1.test.smtp"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "description": "List of email addresses that should be deleted from blacklist",
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "post": {
                "tags": [
                    "EmailBlacklists"
                ],
                "summary": "Add domains to blacklist",
                "description": "Use this method to add domains to the blacklist. Each email address with blacklisted domain will be omitted in future transactional email sending.",
                "operationId": "AddDomainToBlacklist",
                "parameters": [
                    {
                        "name": "smtp",
                        "in": "path",
                        "description": "The name of your smtp account",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "1.test.smtp"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/BlacklistDomain"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "delete": {
                "tags": [
                    "EmailBlacklists"
                ],
                "summary": "Delete domains from blacklist",
                "description": "Use this method to delete domains from the blacklist so addresses email with such domain won't be omitted in the future transactional email sending.",
                "operationId": "DeleteBlacklistDomain",
                "parameters": [
                    {
                        "name": "smtp",
                        "in": "path",
                        "description": "SMTP account",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "1.test.smtp"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "id": {
                                        "description": "List of domains that should be deleted from blacklist",
                                        "type": "array",
                                        "items": {
                                            "description": "Domain",
                                            "type": "string",
                                            "example": "domain.com"
                                        }
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/email/blacklist": {
            "get": {
                "tags": [
                    "EmailBlacklists"
                ],
                "summary": "Get blacklisted email addresses",
                "description": "Use this method to list all email addresses that are on your blacklist.",
                "operationId": "BlacklistListing",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "name": "smtpAccount",
                        "in": "query",
                        "description": "The smtp account name.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Blacklist"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "post": {
                "tags": [
                    "EmailBlacklists"
                ],
                "summary": "Add emails to blacklist",
                "description": "Use this method to add email addresses to the blacklist. Each email address in the blacklist will be omitted in future transactional email sending.",
                "operationId": "AddToBlacklist",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "email",
                                    "smtpAccount",
                                    "reason"
                                ],
                                "properties": {
                                    "email": {
                                        "description": "The email address you want to add to the blacklist.",
                                        "type": "string"
                                    },
                                    "smtpAccount": {
                                        "description": "The name of your smtp account.",
                                        "type": "string",
                                        "example": "1.test.smtp"
                                    },
                                    "reason": {
                                        "description": "The reason for adding the email address to the blacklist. Check all the available reason in List blacklist reasons method.",
                                        "type": "string"
                                    },
                                    "comment": {
                                        "description": "The additional information on the entry.",
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Blacklist"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/email/blacklist/{smtp}": {
            "delete": {
                "tags": [
                    "EmailBlacklists"
                ],
                "summary": "Delete email addresses from blacklist",
                "description": "Use this method to delete email addresses from the blacklist so they won't be omitted in the future transactional email sending.",
                "operationId": "DeleteBlacklist",
                "parameters": [
                    {
                        "name": "smtp",
                        "in": "path",
                        "description": "The name of your smtp account.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "1.test.smtp"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "id"
                                ],
                                "properties": {
                                    "id": {
                                        "description": "List of emails that should be deleted from blacklist",
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "example": "mail@mail.com"
                                        }
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/email/blacklist/reason": {
            "options": {
                "tags": [
                    "EmailBlacklists"
                ],
                "summary": "List blacklist reasons",
                "description": "This method allows you to get list of blacklist reasons. At this moment we have provided 4 reasons which are hardbounce, unsubscribe, spam_complaint and other. Run this method once in a while to check if there are new reasons added.",
                "operationId": "BlacklistReasonsListing",
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/email/click": {
            "get": {
                "tags": [
                    "Emails"
                ],
                "summary": "Get email clicks",
                "description": "Use this method to get details of clicks such as date, IP, browser, operation system and more. Please remember the clicks are stored for 7 days.",
                "operationId": "EmailClicks",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "name": "dateTo",
                        "in": "query",
                        "description": "Search with date. Use RFC 3339 standard or simpler \"YYYY-MM-DD hh:mm:ii\" format. The difference between dateTo and dateFrom cannot be more than 3 days.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2025-01-03 00:00:00"
                        }
                    },
                    {
                        "name": "dateFrom",
                        "in": "query",
                        "description": "Search with date. Use RFC 3339 standard or simpler \"YYYY-MM-DD hh:mm:ii\" format. The difference between dateTo and dateFrom cannot be more than 3 days.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2025-01-01 00:00:00"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/smtpAccount"
                    },
                    {
                        "$ref": "#/components/parameters/messageId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmailClick"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/email": {
            "get": {
                "tags": [
                    "Emails"
                ],
                "summary": "Get email statuses",
                "description": "Use this method to get details of the email with statuses such as injected, ok, softbounce, hardbounce, spambounce, deffered and dropped. By default, you can only access data from the last week",
                "operationId": "GetEmailStatuses",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "$ref": "#/components/parameters/smtpAccount"
                    },
                    {
                        "$ref": "#/components/parameters/messageId"
                    },
                    {
                        "$ref": "#/components/parameters/to"
                    },
                    {
                        "name": "dateFrom",
                        "in": "query",
                        "description": "Search with date. Use RFC 3339 standard or simpler \"YYYY-MM-DD hh:mm:ii\" format. The farthest date is specified by the TTL of your account (which is 1 week by default).",
                        "schema": {
                            "type": "string",
                            "example": "2025-01-01 00:00:00"
                        }
                    },
                    {
                        "name": "dateTo",
                        "in": "query",
                        "description": "Search with date. Use RFC 3339 standard or simpler \"YYYY-MM-DD hh:mm:ii\" format.",
                        "schema": {
                            "type": "string",
                            "example": "2025-01-03 00:00:00"
                        }
                    },
                    {
                        "name": "tags",
                        "in": "query",
                        "description": "List of tags that searched emails must have. You can add up to 10 tags separated by \",\".",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmailStatusObject"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "post": {
                "tags": [
                    "Emails"
                ],
                "summary": "Send emails",
                "description": "Send new email through transactional API which means that you can send email to a single email address or an array of email addresses. You can send the message to a maximum of 200 recipients. The entire query should not exceed 15 MB, and should not exceed 10 000 elements. If you want to send email to a group created through Create group method please use Send email campaign. Link tracking is enabled by default, you can disable it by adding a header `{\"X-TRACKING-OFF\":1}`",
                "operationId": "SendEmails",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/EmailObject"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmailStatusObject"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/email/open": {
            "get": {
                "tags": [
                    "Emails"
                ],
                "summary": "Get email opens",
                "description": "Use this method to get details of email opens such as date, IP, browser, operation system and more. Please remember the opens are stored for 7 days.",
                "operationId": "GetOpens",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "name": "dateTo",
                        "in": "query",
                        "description": "Search with date. Use RFC 3339 standard or simpler \"YYYY-MM-DD hh:mm:ii\" format. The difference between dateTo and dateFrom cannot be more than 3 days.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2025-01-03 00:00:00"
                        }
                    },
                    {
                        "name": "dateFrom",
                        "in": "query",
                        "description": "Search with date. Use RFC 3339 standard or simpler \"YYYY-MM-DD hh:mm:ii\" format. The difference between dateTo and dateFrom cannot be more than 3 days.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2025-01-01 00:00:00"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/smtpAccount"
                    },
                    {
                        "$ref": "#/components/parameters/messageId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmailOpen"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/email/smtpAccount": {
            "options": {
                "tags": [
                    "Emails"
                ],
                "summary": "Get smtp account list",
                "description": "Use this method to list details of the smtp account such as smtp name, smtp type and vps connected to your account.",
                "operationId": "GetSmtpAccounts",
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SmtpAccount"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/group/{groupId}/contact": {
            "get": {
                "tags": [
                    "ContactGroupRelations"
                ],
                "summary": "List contacts in group",
                "description": "Use this method to list all contacts in a group.",
                "operationId": "ListContactsInGroup",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "name": "orderBy",
                        "in": "query",
                        "description": "Allows you to select the field by which the sort should be performed. ( For this method: id, createdAt )",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "default": "id"
                        }
                    },
                    {
                        "name": "orderDirection",
                        "in": "query",
                        "description": "It allows you to set the sort order for a given field. ( ASC or DESC )",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "default": "DESC"
                        }
                    },
                    {
                        "name": "groupId",
                        "in": "path",
                        "description": "The group id that should be searched",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ShortContactObject"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "post": {
                "tags": [
                    "ContactGroupRelations"
                ],
                "summary": "Add contacts to group",
                "description": "Use this method to add contacts to a group.",
                "operationId": "AddContactToGroup",
                "parameters": [
                    {
                        "name": "groupId",
                        "in": "path",
                        "description": "The id of the group.",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IdInput"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "delete": {
                "tags": [
                    "ContactGroupRelations"
                ],
                "summary": "Delete contacts from group",
                "description": "Use this method to delete contacts from a group.",
                "operationId": "DeleteContactFromGroup",
                "parameters": [
                    {
                        "name": "groupId",
                        "in": "path",
                        "description": "The id of the group.",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IdInput"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/group": {
            "get": {
                "tags": [
                    "Groups"
                ],
                "summary": "List groups",
                "description": "Use this method to list all groups.",
                "operationId": "ListGroups",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "name": "orderBy",
                        "in": "query",
                        "description": "Specifies a required order for the query results. You can order only by id, createdAt and name.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "default": "id"
                        }
                    },
                    {
                        "name": "orderDirection",
                        "in": "query",
                        "description": "Specifies the sort order. To sort the groups in descending order, use DESC to sort in ascending order, use ASC.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "default": "DESC"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/GroupWithCreateDate"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "put": {
                "tags": [
                    "Groups"
                ],
                "summary": "Update group",
                "description": "Use this method to update a group.",
                "operationId": "UpdateGroup",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "id"
                                ],
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/GroupObject"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "post": {
                "tags": [
                    "Groups"
                ],
                "summary": "Create group",
                "description": "Use this method to create a group that you can use to send email and sms campaigns.",
                "operationId": "CreateGroup",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/GroupObjectInput"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "delete": {
                "tags": [
                    "Groups"
                ],
                "summary": "Delete group",
                "description": "Use this method to delete an existing group. A group used by an in-progress campaign is refused with the existing campaign-association error.",
                "operationId": "DeleteGroups",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IdInput"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/group/{groupId}/count": {
            "get": {
                "tags": [
                    "ContactGroupRelations"
                ],
                "summary": "Count number of contacts in group",
                "description": "Use this method to count number of contacts in group (either dynamic or static). When using this method for getting dynamic group count you may get response with Retry-After header. Please check chapter 'Long running actions - Retry-After header explained'.",
                "operationId": "CountContactsInGroup",
                "parameters": [
                    {
                        "name": "groupId",
                        "in": "path",
                        "description": "The id of the group.",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/onlyMeta200"
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/contact/identify": {
            "post": {
                "tags": [
                    "Contacts"
                ],
                "summary": "Identify contact",
                "description": "This method is used to merge multiple contacts in one. If multiple contacts with provided identifiers (email, number, extId, pushId) exists in our system, they will be merged into single contact and all information will be updated to the latest values.",
                "operationId": "ContactIdentify",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "contacts": {
                                        "type": "array",
                                        "items": {
                                            "$ref": "#/components/schemas/UpsertContactInput"
                                        }
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/event": {
            "post": {
                "tags": [
                    "Segments"
                ],
                "summary": "Add event",
                "description": "Use this method to create a new event.",
                "operationId": "AddingEvents",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/ConnectApiEventsInput"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/push/register": {
            "post": {
                "tags": [
                    "Pushes"
                ],
                "summary": "Register mobile user",
                "description": "This method register mobile user for push notifications as new contact in our system.",
                "operationId": "PushRegister",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PushRegister"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "$ref": "#/components/responses/207"
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/service/status": {
            "get": {
                "tags": [
                    "Ping"
                ],
                "summary": "Get status",
                "description": "Use this method to verify whether one of our services is down.",
                "operationId": "GetCurrentStatus",
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/StatusResponse"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/sms/senders": {
            "options": {
                "tags": [
                    "Sms"
                ],
                "summary": "Get list of sender IDs",
                "description": "Use the method to get all sender IDs assigned to the current API KEY.",
                "operationId": "GetSendersId",
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/sms/{externalId}": {
            "get": {
                "tags": [
                    "Sms"
                ],
                "summary": "Get single SMS",
                "description": "Use this method to get a specific SMS by its external ID",
                "operationId": "GetSmsByIdV2",
                "parameters": [
                    {
                        "name": "externalId",
                        "in": "path",
                        "description": "External ID of SMS preceded by 'C-' (e.g. C-extid_3-0001). SMS data are kept for 60 days.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SmsObjectV2"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "description": "SMS not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "title": {
                                                        "type": "string",
                                                        "example": "Empty result"
                                                    },
                                                    "message": {
                                                        "type": "string",
                                                        "example": "Not found any result with this query"
                                                    },
                                                    "code": {
                                                        "type": "string",
                                                        "example": "E-0-005"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/sms": {
            "get": {
                "tags": [
                    "Sms"
                ],
                "summary": "Get list of SMS",
                "description": "Use this method to get all sent SMS messages with filtering options. SMS data are kept for 60 days.",
                "operationId": "GetSmsListV2",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "name": "sender",
                        "in": "query",
                        "description": "Allows to filter list of sent SMS by sender ID (you can add up to 10 sender IDs separated by comma)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "phoneNumber",
                        "in": "query",
                        "description": "Allows to find sent SMS by phone number",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "+01230123123"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "You can find SMS by status (1 - new, 2 - move to send, 9 - rejected, 21 - delivered)",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "orderBy",
                        "in": "query",
                        "description": "You can order by externalId, status and createTime",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "orderDirection",
                        "in": "query",
                        "description": "You can set ascending('ASC') or descending('DESC') direction",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "dateTo",
                        "in": "query",
                        "description": "Search with UTC time. Use RFC 3339 standard or simpler 'YYYY-MM-DD hh:mm:ii' format",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2025-01-03 00:00:00"
                        }
                    },
                    {
                        "name": "dateFrom",
                        "in": "query",
                        "description": "Search with UTC time up to a month ago. Use RFC 3339 standard or simpler 'YYYY-MM-DD hh:mm:ii' format",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2025-01-01 00:00:00"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SmsObjectSummaryV2"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "description": "Request was successfully processed but no results were returned",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "title": {
                                                        "type": "string",
                                                        "example": "Empty result"
                                                    },
                                                    "message": {
                                                        "type": "string",
                                                        "example": "Not found any result with this query"
                                                    },
                                                    "code": {
                                                        "type": "string",
                                                        "example": "E-0-005"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            },
            "post": {
                "tags": [
                    "Sms"
                ],
                "summary": "Send SMS",
                "description": "Use this method to send SMS to any phone numbers you provide. If you want to send SMS to the group created through POST /v2.1/group use the send sms campaign method. Remember that the use of characters other than the GSM-7 standard will shorten individual text messages, which may increase the cost of sending messages. If You want more information, check SMS Billing section in this documentation. You can send a single SMS object or an array of SMS objects (up to 200 SMS per request).",
                "operationId": "SendSmsV2_1",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "oneOf": [
                                    {
                                        "$ref": "#/components/schemas/SmsInputV2_1"
                                    },
                                    {
                                        "type": "array",
                                        "items": {
                                            "$ref": "#/components/schemas/SmsInputV2_1"
                                        },
                                        "maxItems": 200
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "data": {
                                            "description": "Array of successfully sent SMS messages",
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SmsResponseObjectV2_1"
                                            }
                                        },
                                        "meta": {
                                            "$ref": "#/components/schemas/SmsMetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "description": "Multi-Status - Partial success. Some SMS messages were sent successfully, while others failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "errors": {
                                            "description": "Array of errors for failed SMS messages",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "title": {
                                                        "description": "General error name",
                                                        "type": "string",
                                                        "example": "Prefix not found"
                                                    },
                                                    "message": {
                                                        "description": "Error details",
                                                        "type": "string",
                                                        "example": "Prefix for this number not found in your account: +48111111111"
                                                    },
                                                    "code": {
                                                        "description": "Error code in our system",
                                                        "type": "string",
                                                        "example": "E-2-004"
                                                    },
                                                    "meta": {
                                                        "description": "Additional error metadata (optional, present only for validation errors with specific parameter information)",
                                                        "properties": {
                                                            "source": {
                                                                "type": "string",
                                                                "example": "233e0574ba-52cf871208-7de30ea23b-e0afb9fcdf"
                                                            },
                                                            "parameter": {
                                                                "type": "string",
                                                                "example": "phoneNumber"
                                                            },
                                                            "value": {
                                                                "type": "string",
                                                                "example": "+48111111111"
                                                            }
                                                        },
                                                        "type": "object",
                                                        "nullable": true
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "data": {
                                            "description": "Array of successfully sent SMS messages",
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SmsResponseObjectV2_1"
                                            }
                                        },
                                        "meta": {
                                            "$ref": "#/components/schemas/SmsMetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Validation error or business logic violation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "errors": {
                                            "description": "Array of validation errors",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "title": {
                                                        "description": "General error name",
                                                        "type": "string",
                                                        "example": "Prefix not found"
                                                    },
                                                    "message": {
                                                        "description": "Error details",
                                                        "type": "string",
                                                        "example": "Prefix for this number not found in your account: +48111111111"
                                                    },
                                                    "code": {
                                                        "description": "Error code in our system",
                                                        "type": "string",
                                                        "example": "E-2-004"
                                                    },
                                                    "meta": {
                                                        "description": "Additional error metadata (optional, present only for validation errors with specific parameter information)",
                                                        "properties": {
                                                            "source": {
                                                                "type": "string",
                                                                "example": "b10c8403ef-be48ea2bf1-b41ac124ac-8b1863a84e"
                                                            },
                                                            "parameter": {
                                                                "type": "string",
                                                                "example": "phoneNumber"
                                                            },
                                                            "value": {
                                                                "type": "string",
                                                                "example": "+48111111111"
                                                            }
                                                        },
                                                        "type": "object",
                                                        "nullable": true
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "meta": {
                                            "$ref": "#/components/schemas/SmsMetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized - Missing or invalid authentication",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "errors": {
                                            "description": "Array of authentication errors",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "title": {
                                                        "description": "General error name",
                                                        "type": "string",
                                                        "example": "Unknown token"
                                                    },
                                                    "message": {
                                                        "description": "Error details",
                                                        "type": "string",
                                                        "example": "Incorrect Application-Key. In newer version of API you need to add Application-Key."
                                                    },
                                                    "code": {
                                                        "description": "Error code in our system",
                                                        "type": "string",
                                                        "example": "E-0-003"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "errors": {
                                            "description": "Array of server errors",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "title": {
                                                        "description": "General error name",
                                                        "type": "string",
                                                        "example": "CriticalError"
                                                    },
                                                    "message": {
                                                        "description": "Error details",
                                                        "type": "string",
                                                        "example": "Critical error spotted. Please try again later"
                                                    },
                                                    "code": {
                                                        "description": "Error code in our system",
                                                        "type": "string",
                                                        "example": "E-0-011"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2.1/sms/statuses": {
            "get": {
                "tags": [
                    "Sms"
                ],
                "summary": "Get statuses of SMS",
                "description": "Use this method to get all SMS statuses. When dateFrom and dateTo are omitted, the last 3 days are returned. When only one date is provided, the missing boundary defaults to 3 days from it (dateTo is capped at the current time). Possible statuses are: NEW (when the actual sending attempt has not yet occurred), DELIVERED (when the SMS has been delivered), UNDELIVERED (when the SMS could not be delivered), UNKNOWN (when the status of SMS could not be determined). SMS data are kept for 60 days.",
                "operationId": "statuses",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/offset"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "name": "dateTo",
                        "in": "query",
                        "description": "Optional. End of the UTC time range. Use RFC 3339 standard or simpler \"YYYY-MM-DD hh:mm:ii\" format. Defaults to now when omitted, or 3 days after dateFrom when only dateFrom is provided.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2025-01-03 00:00:00"
                        }
                    },
                    {
                        "name": "dateFrom",
                        "in": "query",
                        "description": "Optional. Start of the UTC time range. Use RFC 3339 standard or simpler \"YYYY-MM-DD hh:mm:ii\" format. Defaults to 3 days before dateTo, or 3 days before now when both dates are omitted.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2025-01-01 00:00:00"
                        }
                    },
                    {
                        "name": "sender",
                        "in": "query",
                        "description": "List of senders. (max 10)",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "Sender1,Sender2,Sender3"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Request was successfully processed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "meta": {
                                            "$ref": "#/components/schemas/MetaObject"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SmsDLRObjectV2"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400"
                    },
                    "404": {
                        "$ref": "#/components/responses/404"
                    },
                    "500": {
                        "$ref": "#/components/responses/500"
                    }
                }
            }
        },
        "/v2.1/viber": {
            "post": {
                "tags": [
                    "Viber"
                ],
                "summary": "Send Viber Message",
                "description": "Send a Viber message with text, image, and/or action button content to multiple recipients. Supports 4 content combinations: text-only, image-only, text+action, or text+image+action. Maximum 200 recipients per request.",
                "operationId": "sendViberMessage",
                "requestBody": {
                    "description": "Viber message data including recipients, sender, content, and external ID",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "receivers",
                                    "senderName",
                                    "content"
                                ],
                                "properties": {
                                    "receivers": {
                                        "description": "Array of recipient phone numbers (7-15 digits, cannot start with 0, with the prefix, max 200 recipients). Invalid numbers, duplicates and numbers with unauthorized prefixes for your account are filtered out during validation.",
                                        "type": "array",
                                        "items": {
                                            "description": "Phone number in international format without the + symbol, with the prefix, must be valid and authorized for your account. Invalid numbers are filtered out and may result in 207 or 400 responses.",
                                            "type": "string"
                                        },
                                        "maxItems": 200,
                                        "minItems": 1,
                                        "example": [
                                            "48111222333",
                                            "48111222444"
                                        ]
                                    },
                                    "senderName": {
                                        "description": "Registered Viber sender name (max 28 characters, must be pre-registered with Viber)",
                                        "type": "string",
                                        "maxLength": 28,
                                        "minLength": 1,
                                        "example": "MyCompany"
                                    },
                                    "externalId": {
                                        "description": "Unique identifier for tracking the message (max 64 characters, optional, must be unique within 24 hours). If not provided, it will be automatically generated.",
                                        "type": "string",
                                        "maxLength": 64,
                                        "example": "campaign_20250902_123"
                                    },
                                    "content": {
                                        "description": "Supports 4 content combinations: text-only, image-only, text+action, or text+image+action.",
                                        "properties": {
                                            "text": {
                                                "description": "Message text content (1-1000 characters, optional, supports UTF-8 encoding)",
                                                "type": "string",
                                                "maxLength": 1000,
                                                "minLength": 1,
                                                "example": "Hello! Check out our latest offer.",
                                                "nullable": true
                                            },
                                            "image": {
                                                "description": "Image URL (max 500 characters, optional, must be valid URL, supported formats: JPG, PNG)",
                                                "type": "string",
                                                "format": "uri",
                                                "maxLength": 500,
                                                "example": "https://example.com/image.jpg",
                                                "nullable": true
                                            },
                                            "action": {
                                                "description": "Action button configuration (optional, requires both title and targetUrl when present)",
                                                "properties": {
                                                    "title": {
                                                        "description": "Button text (max 30 characters, supports UTF-8 encoding)",
                                                        "type": "string",
                                                        "maxLength": 30,
                                                        "minLength": 1,
                                                        "example": "Learn More"
                                                    },
                                                    "targetUrl": {
                                                        "description": "URL to open when button is clicked (max 500 characters, must be valid URL)",
                                                        "type": "string",
                                                        "format": "uri",
                                                        "maxLength": 500,
                                                        "minLength": 1,
                                                        "example": "https://example.com/offer"
                                                    }
                                                },
                                                "type": "object",
                                                "nullable": true
                                            }
                                        },
                                        "type": "object"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Message sent successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "data": {
                                            "description": "Array of successful message data",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "externalId": {
                                                        "description": "The externalId is assigned to the entire send operation, regardless of the number of recipients",
                                                        "type": "string",
                                                        "example": "campaign_20250902_123"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "meta": {
                                            "properties": {
                                                "numberOfErrors": {
                                                    "description": "Number of items in errors section, 0 if section not exists",
                                                    "type": "integer",
                                                    "example": 0
                                                },
                                                "numberOfData": {
                                                    "description": "Number of items in data section, 0 if section not exists. Maximum one entry with externalId, only when any message was sent successfully",
                                                    "type": "integer",
                                                    "example": 1
                                                },
                                                "status": {
                                                    "description": "HTTP status code",
                                                    "type": "integer",
                                                    "example": 200
                                                },
                                                "uniqId": {
                                                    "description": "Unique identifier for this request",
                                                    "type": "string",
                                                    "example": "cab376a6d8"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "207": {
                        "description": "Multi-Status - Partial success with some failures",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "errors": {
                                            "description": "Array of errors for failed recipients",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "title": {
                                                        "description": "General error name",
                                                        "type": "string",
                                                        "example": "Country prefix not authorized"
                                                    },
                                                    "message": {
                                                        "description": "Error details",
                                                        "type": "string",
                                                        "example": "Country prefix for receiver 43123456789 is not authorized. Please reach out to customer service for help."
                                                    },
                                                    "code": {
                                                        "description": "Error code in our system. Complete list of Viber API error codes and their meanings:<br>// 1 - Validation Errors<br>E-VIB-1-001 - Validation error - General validation failure<br>E-VIB-1-002 - Not allowed content - Invalid message combination<br>E-VIB-1-003 - Invalid receiver format - Phone number must contain only digits (7-15 characters) and cannot start with zero<br><br>// 2 - Authentication/Authorization Errors<br>E-VIB-2-001 - Viber service not fully configured<br>E-VIB-2-002 - SenderName not registered<br>E-VIB-2-003 - Receiver country prefix not authorized<br><br>// 3 - System/Infrastructure Errors<br>E-VIB-3-001 - Viber system error<br><br>// 4 - Business Logic Errors<br>E-VIB-4-001 - External ID already exists (within 24 hours)<br>E-VIB-4-002 - Duplicate receiver found<br>E-VIB-4-003 - No valid receivers found after validation",
                                                        "type": "string",
                                                        "example": "E-VIB-2-003"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "data": {
                                            "description": "Array of successful message data",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "externalId": {
                                                        "description": "The externalId is assigned to the entire send operation, regardless of the number of recipients",
                                                        "type": "string",
                                                        "example": "campaign_20250902_123"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "meta": {
                                            "properties": {
                                                "numberOfErrors": {
                                                    "description": "Number of items in errors section, 0 if section not exists",
                                                    "type": "integer",
                                                    "example": 1
                                                },
                                                "numberOfData": {
                                                    "description": "Number of items in data section, 0 if section not exists. Maximum one entry with externalId, only when any message was sent successfully",
                                                    "type": "integer",
                                                    "example": 1
                                                },
                                                "status": {
                                                    "description": "HTTP status code",
                                                    "type": "integer",
                                                    "example": 207
                                                },
                                                "uniqId": {
                                                    "description": "Unique identifier for this request",
                                                    "type": "string",
                                                    "example": "67983c4eef"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Validation error or business logic violation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "errors": {
                                            "description": "Array of errors that caused complete failure",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "title": {
                                                        "description": "General error name",
                                                        "type": "string",
                                                        "example": "SenderName not registered"
                                                    },
                                                    "message": {
                                                        "description": "Error details",
                                                        "type": "string",
                                                        "example": "This SenderName is not registered with us. Please reach out to customer service for help."
                                                    },
                                                    "code": {
                                                        "description": "Error code in our system. Complete list of Viber API error codes and their meanings:<br>// 1 - Validation Errors<br>E-VIB-1-001 - Validation error - General validation failure<br>E-VIB-1-002 - Not allowed content - Invalid message combination<br>E-VIB-1-003 - Invalid receiver format - Phone number must contain only digits (7-15 characters) and cannot start with zero<br><br>// 2 - Authentication/Authorization Errors<br>E-VIB-2-001 - Viber service not fully configured<br>E-VIB-2-002 - SenderName not registered<br>E-VIB-2-003 - Receiver country prefix not authorized<br><br>// 3 - System/Infrastructure Errors<br>E-VIB-3-001 - Viber system error<br><br>// 4 - Business Logic Errors<br>E-VIB-4-001 - External ID already exists (within 24 hours)<br>E-VIB-4-002 - Duplicate receiver found<br>E-VIB-4-003 - No valid receivers found after validation",
                                                        "type": "string",
                                                        "example": "E-VIB-2-002"
                                                    }
                                                },
                                                "type": "object"
                                            },
                                            "example": [
                                                {
                                                    "title": "Country prefix not authorized",
                                                    "message": "Country prefix for receiver 43123456789 is not authorized. Please reach out to customer service for help.",
                                                    "code": "E-VIB-2-003"
                                                },
                                                {
                                                    "title": "Duplicate receiver removed",
                                                    "message": "Duplicate receiver 43123456789 has been removed from the sending list (message will be delivered only once)",
                                                    "code": "E-VIB-4-002"
                                                },
                                                {
                                                    "title": "Invalid receiver format",
                                                    "message": "Receiver 043123456789 has invalid format. Phone number must contain only digits (7-15 characters) and cannot start with zero.",
                                                    "code": "E-VIB-1-003"
                                                },
                                                {
                                                    "title": "No valid receivers found",
                                                    "message": "No valid receivers found - all receivers were filtered out during validation",
                                                    "code": "E-VIB-4-003"
                                                }
                                            ]
                                        },
                                        "meta": {
                                            "properties": {
                                                "numberOfErrors": {
                                                    "description": "Number of items in errors section, 0 if section not exists",
                                                    "type": "integer",
                                                    "example": 4
                                                },
                                                "numberOfData": {
                                                    "description": "Number of items in data section, 0 if section not exists. Maximum one entry with externalId, only when any message was sent successfully",
                                                    "type": "integer",
                                                    "example": 0
                                                },
                                                "status": {
                                                    "description": "HTTP status code",
                                                    "type": "integer",
                                                    "example": 400
                                                },
                                                "uniqId": {
                                                    "description": "Unique identifier for this request",
                                                    "type": "string",
                                                    "example": "23655a8dbb"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized - Missing or invalid authentication",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "errors": {
                                            "description": "Array of authentication errors",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "title": {
                                                        "description": "General error name",
                                                        "type": "string",
                                                        "example": "Unknown token"
                                                    },
                                                    "message": {
                                                        "description": "Error details",
                                                        "type": "string",
                                                        "example": "Not found any user with this token"
                                                    },
                                                    "code": {
                                                        "type": "string",
                                                        "example": "E-0-003"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "meta": {
                                            "properties": {
                                                "numberOfErrors": {
                                                    "description": "Number of items in errors section, 0 if section not exists",
                                                    "type": "integer",
                                                    "example": 1
                                                },
                                                "numberOfData": {
                                                    "description": "Number of items in data section, 0 if section not exists. Maximum one entry with externalId, only when any message was sent successfully",
                                                    "type": "integer",
                                                    "example": 0
                                                },
                                                "status": {
                                                    "description": "HTTP status code",
                                                    "type": "integer",
                                                    "example": 401
                                                },
                                                "uniqId": {
                                                    "description": "Unique identifier for this request",
                                                    "type": "string",
                                                    "example": "b7dfc026c7"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "errors": {
                                            "description": "Array of server errors",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "title": {
                                                        "description": "General error name",
                                                        "type": "string",
                                                        "example": "CriticalError"
                                                    },
                                                    "message": {
                                                        "description": "Error details",
                                                        "type": "string",
                                                        "example": "Critical error spotted. Please try again later"
                                                    },
                                                    "code": {
                                                        "type": "string",
                                                        "example": "E-0-011"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "meta": {
                                            "properties": {
                                                "numberOfErrors": {
                                                    "description": "Number of items in errors section, 0 if section not exists",
                                                    "type": "integer",
                                                    "example": 1
                                                },
                                                "numberOfData": {
                                                    "description": "Number of items in data section, 0 if section not exists. Maximum one entry with externalId, only when any message was sent successfully",
                                                    "type": "integer",
                                                    "example": 0
                                                },
                                                "status": {
                                                    "description": "HTTP status code",
                                                    "type": "integer",
                                                    "example": 500
                                                },
                                                "uniqId": {
                                                    "description": "Unique identifier for this request",
                                                    "type": "string",
                                                    "example": "46cbb248ea"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "ErrorObject": {
                "description": "Errors list",
                "required": [
                    "title",
                    "message",
                    "code"
                ],
                "properties": {
                    "title": {
                        "description": "General error name",
                        "type": "string",
                        "example": "ValidationError"
                    },
                    "message": {
                        "description": "Error details",
                        "type": "string",
                        "example": "Field ... is invalid"
                    },
                    "code": {
                        "description": "Error code in our system",
                        "type": "string",
                        "example": "E-01-01"
                    }
                },
                "type": "object"
            },
            "SmsCampaign": {
                "description": "Sms campaign object",
                "properties": {
                    "externalId": {
                        "type": "string",
                        "example": "example-id"
                    },
                    "name": {
                        "type": "string",
                        "example": "test"
                    },
                    "description": {
                        "type": "string",
                        "example": "test descr"
                    },
                    "message": {
                        "type": "string",
                        "example": "Hello world"
                    },
                    "senderId": {
                        "type": "string",
                        "example": "TEST"
                    },
                    "groupId": {
                        "type": "string",
                        "example": "test-group-id"
                    },
                    "scheduleTime": {
                        "type": "string",
                        "example": "2020-09-10 10:15:00"
                    },
                    "api": {
                        "type": "string",
                        "example": "1"
                    }
                },
                "type": "object"
            },
            "ContactObjectUpdate": {
                "description": "One of the following parameters is required when adding contact: email, phoneNumber",
                "properties": {
                    "companyName": {
                        "description": "The company name.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "Example company"
                    },
                    "email": {
                        "description": "The valid email address.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "test@test.pl"
                    },
                    "externalId": {
                        "description": "The unique identifier of the contact.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "XXX-XXX-XXX"
                    },
                    "firstName": {
                        "description": "Contact's name.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "First name"
                    },
                    "id": {
                        "description": "Contact id",
                        "type": "string",
                        "maxLength": 150,
                        "readOnly": true,
                        "example": "1"
                    },
                    "lastName": {
                        "description": "Contact's last name.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "Last name"
                    },
                    "phoneNumber": {
                        "description": "Contact's phone number.",
                        "type": "string",
                        "maxLength": 15,
                        "pattern": "/^\\+?[0-9]+$/",
                        "example": "123123123"
                    },
                    "externalData": {
                        "description": "Object with any additional parameters. <br>\n * Contains key value pairs where key max length is 100 characters. <br>\n * Value can be one of the following types: string, int, bool, date (in YYYY-MM-DD hh:mm:ii format)",
                        "type": "object",
                        "example": {
                            "test": "test",
                            "createdAt": "1989-09-28",
                            "isClient": false
                        },
                        "additionalProperties": true
                    },
                    "inArchive": {
                        "description": "Is contact archivized, field added in version v1.1",
                        "type": "boolean",
                        "readOnly": true,
                        "example": "false"
                    }
                },
                "type": "object"
            },
            "ContactObject": {
                "description": "One of the following parameters is required when adding contact: email, phoneNumber",
                "properties": {
                    "companyName": {
                        "description": "The company name.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "Example company"
                    },
                    "createdAt": {
                        "description": "The date of creation contact.",
                        "type": "string",
                        "maxLength": 150,
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}\\s*(?:\\d{2}:\\d{2}(?::\\d{2})?)?$",
                        "example": "2019-02-01 20:12:12"
                    },
                    "email": {
                        "description": "The valid email address.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "test@test.pl"
                    },
                    "externalId": {
                        "description": "The unique identifier of the contact.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "XXX-XXX-XXX"
                    },
                    "firstName": {
                        "description": "Contact's name.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "First name"
                    },
                    "id": {
                        "description": "Contact id",
                        "type": "string",
                        "maxLength": 150,
                        "readOnly": true,
                        "example": "1"
                    },
                    "lastName": {
                        "description": "Contact's last name.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "Last name"
                    },
                    "phoneNumber": {
                        "description": "Contact's phone number.",
                        "type": "string",
                        "maxLength": 15,
                        "pattern": "/^\\+?[0-9]+$/",
                        "example": "123123123"
                    },
                    "externalData": {
                        "description": "Object with any additional parameters. <br>\n * Contains key value pairs where key max length is 100 characters. <br>\n * Value can be one of the following types: string, int, bool, date (in YYYY-MM-DD hh:mm:ii format)",
                        "type": "object",
                        "example": {
                            "test": "test",
                            "createdAt": "1989-09-28",
                            "isClient": false
                        },
                        "additionalProperties": true
                    },
                    "inArchive": {
                        "description": "Is contact archivized, field added in version v1.1",
                        "type": "boolean",
                        "readOnly": true,
                        "example": "false"
                    }
                },
                "type": "object"
            },
            "ContactObjectV2": {
                "description": "One of the following parameters is required when adding contact: email, phoneNumber",
                "properties": {
                    "companyName": {
                        "description": "The company name.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "Example company"
                    },
                    "createdAt": {
                        "description": "The date of creation contact.",
                        "type": "string",
                        "maxLength": 150,
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}\\s*(?:\\d{2}:\\d{2}(?::\\d{2})?)?$",
                        "example": "2019-02-01 20:12:12"
                    },
                    "email": {
                        "description": "The valid email address.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "test@test.pl"
                    },
                    "externalId": {
                        "description": "The unique identifier of the contact.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "XXX-XXX-XXX"
                    },
                    "firstName": {
                        "description": "Contact's name.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "First name"
                    },
                    "id": {
                        "description": "Contact id",
                        "type": "string",
                        "maxLength": 150,
                        "readOnly": true,
                        "example": "1"
                    },
                    "lastName": {
                        "description": "Contact's last name.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "Last name"
                    },
                    "phoneNumber": {
                        "description": "Contact's phone number.",
                        "type": "string",
                        "maxLength": 15,
                        "pattern": "/^\\+?[0-9]+$/",
                        "example": "123123123"
                    },
                    "externalData": {
                        "description": "Object with any additional parameters. <br>\n *  Contains key value pairs where key max length is 100 characters. <br>\n * Value can be one of the following types: string, int, bool, date (in YYYY-MM-DD hh:mm:ii format)",
                        "type": "object",
                        "example": {
                            "test": "test",
                            "createdAt": "1989-09-28",
                            "isClient": false
                        },
                        "additionalProperties": true
                    },
                    "inArchive": {
                        "description": "Is contact archivized, field added in version v1.1",
                        "type": "boolean",
                        "readOnly": true,
                        "example": "false"
                    },
                    "unsubscribeAllReason": {
                        "description": "Unsubscribe reason. (1 - spam, 2 - unregistered, 3 - doesnotexisits, 4 - other)",
                        "type": "integer",
                        "example": 4,
                        "nullable": true
                    },
                    "unsubscribeAllTime": {
                        "description": "Last action date. Unsubscribe or resubscribe all channels date.",
                        "type": "string",
                        "maxLength": 150,
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}\\s*(?:\\d{2}:\\d{2}(?::\\d{2})?)?$",
                        "example": "2019-02-01 20:12:12"
                    },
                    "unsubscribePushTime": {
                        "description": "Last action date. Unsubscribe or resubscribe push channel date.",
                        "type": "string",
                        "maxLength": 150,
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}\\s*(?:\\d{2}:\\d{2}(?::\\d{2})?)?$",
                        "example": "2019-02-01 20:12:12"
                    },
                    "unsubscribeEmailTime": {
                        "description": "Last action date. Unsubscribe or resubscribe email channel date.",
                        "type": "string",
                        "maxLength": 150,
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}\\s*(?:\\d{2}:\\d{2}(?::\\d{2})?)?$",
                        "example": "2019-02-01 20:12:12"
                    },
                    "unsubscribeSmsTime": {
                        "description": "Last action date. Unsubscribe or resubscribe sms channel date.",
                        "type": "string",
                        "maxLength": 150,
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}\\s*(?:\\d{2}:\\d{2}(?::\\d{2})?)?$",
                        "example": "2019-02-01 20:12:12"
                    },
                    "isUnsubscribeSms": {
                        "description": "Is contact unsubscribed in sms channel",
                        "type": "boolean",
                        "readOnly": true,
                        "example": "false"
                    },
                    "isUnsubscribeEmail": {
                        "description": "Is contact unsubscribed in email channel",
                        "type": "boolean",
                        "readOnly": true,
                        "example": "false"
                    },
                    "isUnsubscribePush": {
                        "description": "Is contact unsubscribed in push channel",
                        "type": "boolean",
                        "readOnly": true,
                        "example": "false"
                    }
                },
                "type": "object"
            },
            "IdInput": {
                "description": "The id of a object",
                "required": [
                    "id"
                ],
                "properties": {
                    "id": {
                        "description": "The id of a object",
                        "type": "array",
                        "items": {
                            "type": "integer",
                            "example": 1
                        }
                    }
                },
                "type": "object"
            },
            "ExtIdInput": {
                "description": "The external id of a object",
                "properties": {
                    "id": {
                        "description": "The external id of a object",
                        "type": "array",
                        "items": {
                            "type": "string",
                            "example": "XXX-XXX"
                        }
                    }
                },
                "type": "object"
            },
            "ExtIdInputTemplates": {
                "required": [
                    "externalId"
                ],
                "properties": {
                    "externalId": {
                        "description": "The unique ID of the template.",
                        "type": "array",
                        "items": {
                            "type": "string",
                            "example": "XXX-XXX"
                        }
                    }
                },
                "type": "object"
            },
            "DataObject": {
                "description": "Simple data object",
                "type": "array",
                "items": {
                    "properties": {
                        "key": {
                            "type": "string",
                            "example": "value"
                        }
                    },
                    "type": "object"
                }
            },
            "ShortContactObject": {
                "properties": {
                    "email": {
                        "type": "string",
                        "example": "test@test.pl"
                    },
                    "externalId": {
                        "type": "string",
                        "example": "XXXX-XXXXX-XXXX"
                    },
                    "id": {
                        "type": "string",
                        "example": "123"
                    },
                    "phoneNumber": {
                        "type": "string",
                        "example": "0123123123"
                    }
                },
                "type": "object"
            },
            "MetaObject": {
                "description": "Additional data",
                "required": [
                    "numberOfErrors",
                    "numberOfData",
                    "status",
                    "uniqId"
                ],
                "properties": {
                    "numberOfErrors": {
                        "description": "Number of items in errors section, 0 if section not exists",
                        "type": "integer",
                        "example": 0
                    },
                    "numberOfData": {
                        "description": "Number of items in data section, 0 if section not exists",
                        "type": "integer",
                        "example": 1
                    },
                    "status": {
                        "description": "Request HTTP status",
                        "type": "integer",
                        "example": 200
                    },
                    "uniqId": {
                        "description": "Unique identifier of a request - it allows us to find your request in the case of any troubles",
                        "type": "string",
                        "example": "00d928f759"
                    }
                },
                "type": "object"
            },
            "GroupObjectInput": {
                "description": "Group object",
                "required": [
                    "name"
                ],
                "properties": {
                    "name": {
                        "description": "The group name.",
                        "type": "string",
                        "example": "test"
                    },
                    "description": {
                        "description": "The group description.",
                        "type": "string",
                        "example": "Test descr"
                    },
                    "externalId": {
                        "description": "The unique identifier of the group",
                        "type": "string",
                        "example": "XXXXX-XXXX-XXXX"
                    }
                },
                "type": "object"
            },
            "GroupObject": {
                "description": "Group object",
                "required": [
                    "id"
                ],
                "properties": {
                    "id": {
                        "description": "The id of the group.",
                        "type": "integer",
                        "example": 1234
                    },
                    "name": {
                        "description": "The unique name of the group.",
                        "type": "string",
                        "example": "test"
                    },
                    "description": {
                        "description": "The group description.",
                        "type": "string",
                        "example": "Test descr"
                    }
                },
                "type": "object"
            },
            "EmailStatusObject": {
                "properties": {
                    "subject": {
                        "type": "string"
                    },
                    "smtpAccount": {
                        "description": "SMTP account",
                        "type": "string",
                        "example": "1.test.smtp"
                    },
                    "tags": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "to": {
                        "properties": {
                            "email": {
                                "type": "string",
                                "example": "test@domena.pl"
                            },
                            "name": {
                                "type": "string",
                                "example": "Test sender"
                            },
                            "messageId": {
                                "type": "string",
                                "example": "test0001@domena.pl"
                            }
                        },
                        "type": "object"
                    },
                    "from": {
                        "properties": {
                            "email": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "type": "object"
                    },
                    "status": {
                        "type": "string"
                    },
                    "statusTime": {
                        "type": "number"
                    },
                    "statusDesc": {
                        "type": "string"
                    },
                    "allStatuses": {
                        "type": "array",
                        "items": {
                            "properties": {
                                "status": {
                                    "type": "string"
                                },
                                "statusTime": {
                                    "type": "integer"
                                },
                                "statusDesc": {
                                    "type": "string"
                                }
                            },
                            "type": "object"
                        }
                    }
                },
                "type": "object"
            },
            "EmailObject": {
                "description": "Object passed when sending emails. ",
                "required": [
                    "subject",
                    "smtpAccount",
                    "content",
                    "from",
                    "to"
                ],
                "properties": {
                    "subject": {
                        "description": "The subject of the message.",
                        "type": "string",
                        "maxLength": 128,
                        "minLength": 2,
                        "example": "Test email subject"
                    },
                    "smtpAccount": {
                        "description": "The smtp account name the email will be sent from.",
                        "type": "string",
                        "example": "1.test.smtp"
                    },
                    "tags": {
                        "description": "The values to tag the message with. Tags can be non-unique.",
                        "type": "array",
                        "items": {
                            "type": "string",
                            "example": "test-tag"
                        }
                    },
                    "content": {
                        "description": "The body of the message. If you choose templateId html and text can be omitted.",
                        "properties": {
                            "html": {
                                "description": "The html of the message.",
                                "type": "string",
                                "example": "<h1>Hello world</h1>"
                            },
                            "text": {
                                "description": "The text of the message.",
                                "type": "string",
                                "example": "Hello world"
                            },
                            "templateId": {
                                "description": "The unique ID of the template you can find it using Get templates list method.",
                                "type": "string",
                                "example": "as2sCwq"
                            }
                        },
                        "type": "object"
                    },
                    "bcc": {
                        "description": "The array of recipients who will receive a blind carbon copy of your email.",
                        "type": "array",
                        "items": {
                            "properties": {
                                "email": {
                                    "description": "The email address of the recipient.",
                                    "type": "string"
                                },
                                "name": {
                                    "description": "The name of the recipient.",
                                    "type": "string",
                                    "maxLength": 64,
                                    "minLength": 2
                                }
                            },
                            "type": "object"
                        }
                    },
                    "cc": {
                        "description": "The array of recipients who will receive a copy of your email.",
                        "type": "array",
                        "items": {
                            "properties": {
                                "email": {
                                    "description": "The email address of the recipient.",
                                    "type": "string"
                                },
                                "name": {
                                    "description": "The name of the recipient.",
                                    "type": "string",
                                    "maxLength": 64,
                                    "minLength": 2
                                }
                            },
                            "type": "object"
                        }
                    },
                    "from": {
                        "description": "The details of sender.",
                        "properties": {
                            "email": {
                                "description": "The email address of the sender.",
                                "type": "string"
                            },
                            "name": {
                                "description": "The name of the sender.",
                                "type": "string",
                                "maxLength": 64,
                                "minLength": 2
                            }
                        },
                        "type": "object"
                    },
                    "replyTo": {
                        "description": "The details of who the recipient can reply to.",
                        "properties": {
                            "email": {
                                "description": "The email address to reply to.",
                                "type": "string"
                            },
                            "name": {
                                "description": "The name of the email address to reply to.",
                                "type": "string",
                                "maxLength": 64,
                                "minLength": 2
                            }
                        },
                        "type": "object"
                    },
                    "headers": {
                        "description": "The extra key/value pair of the headers you can add to the message. Property name can contain max of 100 signs.",
                        "type": "object",
                        "example": {
                            "X-TEST-HEADER": "val"
                        },
                        "additionalProperties": true
                    },
                    "globalVars": {
                        "description": "The extra variables you can use in your e-mial template. You can find more information on how to use this feature <a href=\"#section/Dynamic-e-mail-content\">in this section</a>.",
                        "type": "object",
                        "example": {
                            "sex": "unknown",
                            "hasNewsletter": false,
                            "promos": {
                                "1": {
                                    "name": "test40",
                                    "value": 300
                                },
                                "2": {
                                    "name": "test800",
                                    "value": 3008
                                }
                            },
                            "footer": "<div><strong>crazy footer</strong></div>"
                        },
                        "additionalProperties": true
                    },
                    "to": {
                        "description": "The details of the recipients.",
                        "type": "array",
                        "items": {
                            "properties": {
                                "email": {
                                    "description": "The email address of the recipient.",
                                    "type": "string",
                                    "example": "test@domena.pl"
                                },
                                "name": {
                                    "description": "The name of the recipient.",
                                    "type": "string",
                                    "maxLength": 64,
                                    "minLength": 2,
                                    "example": "Test sender"
                                },
                                "messageId": {
                                    "description": "The unique ID of the message.",
                                    "type": "string",
                                    "example": "test0001@domena.pl"
                                },
                                "vars": {
                                    "description": "The extra key/value pair of variables you can add and use in the message. You can find more information on how to use this feature <a href=\"#section/Dynamic-e-mail-content\">in this section</a>.",
                                    "type": "object",
                                    "example": {
                                        "hasNewsletter": true,
                                        "products": {
                                            "1": {
                                                "name": "skirt",
                                                "id": 1,
                                                "color": "green"
                                            },
                                            "2": {
                                                "name": "hoodie",
                                                "id": 6,
                                                "color": "red",
                                                "options": [
                                                    "pocket",
                                                    "print",
                                                    "glitter"
                                                ]
                                            },
                                            "3": {
                                                "name": "dress",
                                                "id": "100",
                                                "color": "blue"
                                            }
                                        }
                                    }
                                }
                            },
                            "type": "object"
                        },
                        "maxItems": 200
                    },
                    "attachments": {
                        "description": "The details of the attachments. The entire query should not exceed 15 MB.",
                        "type": "array",
                        "items": {
                            "properties": {
                                "fileName": {
                                    "description": "Name of the file.",
                                    "type": "string",
                                    "example": "report.txt"
                                },
                                "fileMime": {
                                    "description": "Type of file.",
                                    "type": "string",
                                    "example": "text/plain"
                                },
                                "fileContent": {
                                    "description": "File content in encoding base64.",
                                    "type": "string",
                                    "example": "c29tZSBmaWxlIGNvbnRlbnQ="
                                },
                                "inline": {
                                    "description": "Field used for image attachments. It indicates whether the image should be placed inline or not.",
                                    "type": "boolean",
                                    "default": false,
                                    "example": "true"
                                }
                            },
                            "type": "object"
                        }
                    }
                },
                "type": "object"
            },
            "MultipleRecipientEmailObject": {
                "description": "Object passed when sending emails. ",
                "required": [
                    "subject",
                    "smtpAccount",
                    "content",
                    "from",
                    "to"
                ],
                "properties": {
                    "subject": {
                        "description": "The subject of the message.",
                        "type": "string",
                        "maxLength": 128,
                        "minLength": 2,
                        "example": "Test email subject"
                    },
                    "smtpAccount": {
                        "description": "The smtp account name the email will be sent from.",
                        "type": "string",
                        "example": "1.test.smtp"
                    },
                    "tags": {
                        "description": "The values to tag the message with. Tags can be non-unique.",
                        "type": "array",
                        "items": {
                            "type": "string",
                            "example": "test-tag"
                        }
                    },
                    "content": {
                        "description": "The body of the message. If you choose templateId html and text can be omitted.",
                        "properties": {
                            "html": {
                                "description": "The html of the message.",
                                "type": "string",
                                "example": "<h1>Hello world</h1>"
                            },
                            "text": {
                                "description": "The text of the message.",
                                "type": "string",
                                "example": "Hello world"
                            },
                            "templateId": {
                                "description": "The unique ID of the template you can find it using Get templates list method.",
                                "type": "string",
                                "example": "as2sCwq"
                            }
                        },
                        "type": "object"
                    },
                    "bcc": {
                        "description": "The array of recipients who will receive a blind carbon copy of your email.",
                        "type": "array",
                        "items": {
                            "properties": {
                                "email": {
                                    "description": "The email address of the recipient.",
                                    "type": "string"
                                },
                                "name": {
                                    "description": "The name of the recipient.",
                                    "type": "string",
                                    "maxLength": 64,
                                    "minLength": 2
                                }
                            },
                            "type": "object"
                        }
                    },
                    "cc": {
                        "description": "The array of recipients who will receive a copy of your email.",
                        "type": "array",
                        "items": {
                            "properties": {
                                "email": {
                                    "description": "The email address of the recipient.",
                                    "type": "string"
                                },
                                "name": {
                                    "description": "The name of the recipient.",
                                    "type": "string",
                                    "maxLength": 64,
                                    "minLength": 2
                                }
                            },
                            "type": "object"
                        }
                    },
                    "from": {
                        "description": "The details of sender.",
                        "properties": {
                            "email": {
                                "description": "The email address of the sender.",
                                "type": "string"
                            },
                            "name": {
                                "description": "The name of the sender.",
                                "type": "string",
                                "maxLength": 64,
                                "minLength": 2
                            }
                        },
                        "type": "object"
                    },
                    "replyTo": {
                        "description": "The details of who the recipient can reply to.",
                        "properties": {
                            "email": {
                                "description": "The email address to reply to.",
                                "type": "string"
                            },
                            "name": {
                                "description": "The name of the email address to reply to.",
                                "type": "string",
                                "maxLength": 64,
                                "minLength": 2
                            }
                        },
                        "type": "object"
                    },
                    "headers": {
                        "description": "The extra key/value pair of the headers you can add to the message. Property name can contain max of 100 signs.",
                        "type": "object",
                        "example": {
                            "X-TEST-HEADER": "val"
                        },
                        "additionalProperties": true
                    },
                    "globalVars": {
                        "description": "The extra variables you can use in your e-mial template. You can find more information on how to use this feature <a href=\"#section/Dynamic-e-mail-content\">in this section</a>.",
                        "type": "object",
                        "example": {
                            "sex": "unknown",
                            "hasNewsletter": false,
                            "promos": {
                                "1": {
                                    "name": "test40",
                                    "value": 300
                                },
                                "2": {
                                    "name": "test800",
                                    "value": 3008
                                }
                            },
                            "footer": "<div><strong>crazy footer</strong></div>"
                        },
                        "additionalProperties": true
                    },
                    "to": {
                        "description": "The details of the recipients.",
                        "type": "array",
                        "items": {
                            "properties": {
                                "email": {
                                    "type": "array",
                                    "items": {
                                        "description": "The email address of the recipient.",
                                        "type": "string"
                                    }
                                },
                                "messageId": {
                                    "description": "The unique ID of the message.",
                                    "type": "string",
                                    "example": "test0001@domena.pl"
                                },
                                "vars": {
                                    "description": "The extra key/value pair of variables you can add and use in the message. You can find more information on how to use this feature <a href=\"#section/Dynamic-e-mail-content\">in this section</a>.",
                                    "type": "object",
                                    "example": {
                                        "hasNewsletter": true,
                                        "products": {
                                            "1": {
                                                "name": "skirt",
                                                "id": 1,
                                                "color": "green"
                                            },
                                            "2": {
                                                "name": "hoodie",
                                                "id": 6,
                                                "color": "red",
                                                "options": [
                                                    "pocket",
                                                    "print",
                                                    "glitter"
                                                ]
                                            },
                                            "3": {
                                                "name": "dress",
                                                "id": "100",
                                                "color": "blue"
                                            }
                                        }
                                    }
                                }
                            },
                            "type": "object"
                        },
                        "maxItems": 200
                    },
                    "attachments": {
                        "description": "The details of the attachments. The entire query should not exceed 15 MB.",
                        "type": "array",
                        "items": {
                            "properties": {
                                "fileName": {
                                    "description": "Name of the file.",
                                    "type": "string",
                                    "example": "report.txt"
                                },
                                "fileMime": {
                                    "description": "Type of file.",
                                    "type": "string",
                                    "example": "text/plain"
                                },
                                "fileContent": {
                                    "description": "File content in encoding base64.",
                                    "type": "string",
                                    "example": "c29tZSBmaWxlIGNvbnRlbnQ="
                                },
                                "inline": {
                                    "description": "Field used for image attachments. It indicates whether the image should be placed inline or not.",
                                    "type": "boolean",
                                    "default": false,
                                    "example": "true"
                                }
                            },
                            "type": "object"
                        }
                    }
                },
                "type": "object"
            },
            "SmsInputV2_1": {
                "required": [
                    "sender",
                    "phoneNumbers",
                    "message"
                ],
                "properties": {
                    "sender": {
                        "description": "The sender ID that was previously added through the user panel and then accepted by our support team. Minimum length is 3 characters.",
                        "type": "string",
                        "maxLength": 15,
                        "minLength": 3
                    },
                    "message": {
                        "description": "The content of the SMS",
                        "type": "string",
                        "example": "Hello world!"
                    },
                    "phoneNumbers": {
                        "description": "The phone numbers of receivers. Can be a single string or an array of strings.",
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "maxItems": 200,
                        "example": [
                            "+48111222333",
                            "+48111222444"
                        ]
                    },
                    "phoneNumber": {
                        "description": "Single phone number (alternative to phoneNumbers array)",
                        "type": "string",
                        "example": "+48111222333"
                    },
                    "validity": {
                        "description": "The number of minutes the SMS will be valid (Max value = 4320 / 3 days)",
                        "type": "integer",
                        "maximum": 4320
                    },
                    "scheduleTime": {
                        "description": "SMS dispatch date set in the future, up to a maximum of 14 days. Unix timestamp in UTC timezone.",
                        "type": "integer"
                    },
                    "type": {
                        "description": "Type of SMS (0 - regular SMS, 1 - Flash SMS)",
                        "type": "integer",
                        "default": 0
                    },
                    "shortLink": {
                        "description": "The URL shortener and tracker. Setting this property to 'true' will make the urls shorter and also urls will be tracked.",
                        "type": "boolean",
                        "default": false,
                        "example": true
                    },
                    "externalId": {
                        "description": "The unique identifier of the message. After sending a text message with external ID, it cannot be resent for next 24 hours. Cannot be longer than 64 characters.",
                        "type": "string",
                        "maxLength": 64,
                        "example": "xxxx-xxxx-xxxx"
                    }
                },
                "type": "object"
            },
            "SmsResponseObjectV2_1": {
                "description": "SMS response object returned in data array",
                "required": [
                    "sender",
                    "phoneNumber",
                    "externalId",
                    "status",
                    "statusTime",
                    "createTime",
                    "smsPrice",
                    "currency",
                    "numberOfParts"
                ],
                "properties": {
                    "sender": {
                        "description": "SMS sender's phone number or name",
                        "type": "string",
                        "maxLength": 15,
                        "example": "SMS TEST"
                    },
                    "phoneNumber": {
                        "description": "Recipient phone number",
                        "type": "string",
                        "example": "+48111222333"
                    },
                    "externalId": {
                        "description": "Unique identifier of the message",
                        "type": "string",
                        "example": "81ebfb33fc-64e3cf5de9-445fdfea09-ef2d53a338"
                    },
                    "status": {
                        "description": "Current SMS status (1 - new, 2 - move to send, 9 - rejected, 21 - delivered)",
                        "type": "integer",
                        "example": 1
                    },
                    "statusTime": {
                        "description": "Current SMS status date (Unix timestamp in UTC timezone)",
                        "type": "integer",
                        "example": 1766017783
                    },
                    "createTime": {
                        "description": "Date of first SMS status (Unix timestamp in UTC timezone)",
                        "type": "integer",
                        "example": 1766017783
                    },
                    "smsPrice": {
                        "description": "Price of SMS (multiply by 0.0001 to get actual amount in currency)",
                        "type": "integer",
                        "example": 795
                    },
                    "currency": {
                        "description": "Currency (0 - PLN, 1 - USD, 2 - EUR)",
                        "type": "integer",
                        "example": 0
                    },
                    "numberOfParts": {
                        "description": "Number of SMS parts sent in one message",
                        "type": "integer",
                        "example": 1
                    }
                },
                "type": "object"
            },
            "SmsMetaObject": {
                "description": "Additional data for SMS response",
                "required": [
                    "numberOfErrors",
                    "numberOfData",
                    "status",
                    "uniqId",
                    "sentSms",
                    "notSentSms",
                    "accountBalance"
                ],
                "properties": {
                    "sentSms": {
                        "description": "Number of SMS messages successfully sent",
                        "type": "integer",
                        "example": 1
                    },
                    "notSentSms": {
                        "description": "Number of SMS messages that failed to send",
                        "type": "integer",
                        "example": 0
                    },
                    "accountBalance": {
                        "description": "Current account balance after sending SMS messages",
                        "type": "string",
                        "example": "2385",
                        "nullable": true
                    },
                    "numberOfErrors": {
                        "description": "Number of items in errors section, 0 if section not exists",
                        "type": "integer",
                        "example": 0
                    },
                    "numberOfData": {
                        "description": "Number of items in data section, 0 if section not exists",
                        "type": "integer",
                        "example": 1
                    },
                    "status": {
                        "description": "Request HTTP status",
                        "type": "integer",
                        "example": 200
                    },
                    "uniqId": {
                        "description": "Unique identifier of a request - it allows us to find your request in the case of any troubles",
                        "type": "string",
                        "example": "98275a9700"
                    }
                },
                "type": "object"
            },
            "RCSRichCard": {
                "description": "A standalone rich card or a carousel of rich cards. Exactly one of carousel_card or standalone_card must be provided.",
                "properties": {
                    "carousel_card": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/RCSCarouselCard"
                            }
                        ],
                        "nullable": true,
                        "description": "Carousel of cards (2-10 cards). Mutually exclusive with standalone_card."
                    },
                    "standalone_card": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/RCSStandaloneCard"
                            }
                        ],
                        "nullable": true,
                        "description": "A single standalone rich card. Mutually exclusive with carousel_card."
                    }
                },
                "type": "object"
            },
            "RCSCarouselCard": {
                "description": "A carousel of rich cards containing 2-10 cards.",
                "required": [
                    "card_contents"
                ],
                "properties": {
                    "card_width": {
                        "description": "The width of the cards in the carousel. SMALL = 120 DP (tall media not available), MEDIUM = 232 DP.",
                        "type": "string",
                        "enum": [
                            "CARD_WIDTH_UNSPECIFIED",
                            "SMALL",
                            "MEDIUM"
                        ],
                        "example": "MEDIUM"
                    },
                    "card_contents": {
                        "description": "The list of card contents. Minimum 2, maximum 10 cards.",
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/RCSCardContent"
                        },
                        "maxItems": 10,
                        "minItems": 2
                    }
                },
                "type": "object"
            },
            "RCSStandaloneCard": {
                "description": "A single standalone rich card.",
                "properties": {
                    "card_orientation": {
                        "description": "Orientation of the card. HORIZONTAL requires at least title, description, or suggestions if media is present.",
                        "type": "string",
                        "enum": [
                            "CARD_ORIENTATION_UNSPECIFIED",
                            "HORIZONTAL",
                            "VERTICAL"
                        ],
                        "example": "VERTICAL"
                    },
                    "thumbnail_image_alignment": {
                        "description": "Image preview alignment for standalone cards with horizontal layout.",
                        "type": "string",
                        "enum": [
                            "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED",
                            "LEFT",
                            "RIGHT"
                        ],
                        "example": "LEFT"
                    },
                    "card_content": {
                        "$ref": "#/components/schemas/RCSCardContent"
                    }
                },
                "type": "object"
            },
            "RCSCardContent": {
                "description": "Content of a rich card including title, description, media and suggestions.",
                "properties": {
                    "title": {
                        "description": "Title of the card. Maximum 200 characters.",
                        "type": "string",
                        "maxLength": 200,
                        "example": "Welcome to our service"
                    },
                    "description": {
                        "description": "Description of the card. Maximum 2000 characters.",
                        "type": "string",
                        "maxLength": 2000,
                        "example": "Discover amazing features and benefits of our platform."
                    },
                    "media": {
                        "$ref": "#/components/schemas/RCSMedia"
                    },
                    "suggestions": {
                        "description": "List of suggestions to include in the card. Maximum 4 suggestions.",
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/RCSSuggestion"
                        },
                        "maxItems": 4
                    }
                },
                "type": "object"
            },
            "RCSMedia": {
                "description": "A media file within a rich card.",
                "properties": {
                    "content_info": {
                        "$ref": "#/components/schemas/RCSContentInfo"
                    },
                    "height": {
                        "description": "The height of the media within a rich card with vertical layout. SHORT = 112 DP, MEDIUM = 168 DP, TALL = 264 DP (not available for carousels with SMALL width).",
                        "type": "string",
                        "enum": [
                            "HEIGHT_UNSPECIFIED",
                            "SHORT",
                            "MEDIUM",
                            "TALL"
                        ],
                        "example": "MEDIUM"
                    }
                },
                "type": "object"
            },
            "RCSContentInfo": {
                "description": "Information about a file, including the URL of the file and optional thumbnail.",
                "required": [
                    "file_url"
                ],
                "properties": {
                    "file_url": {
                        "description": "Publicly reachable URL of the file. The RBM platform determines the MIME type from the content-type HTTP header. Recommended maximum file size: 100 MB.",
                        "type": "string",
                        "format": "uri",
                        "example": "https://example.com/images/product.jpg"
                    }
                },
                "type": "object"
            },
            "RCSSuggestion": {
                "description": "A suggested reply or a suggested action. Exactly one of reply or action must be provided.",
                "properties": {
                    "reply": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/RCSSuggestedReply"
                            }
                        ],
                        "nullable": true,
                        "description": "A suggested reply that sends text back to the agent when tapped. Mutually exclusive with action."
                    },
                    "action": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/RCSSuggestedAction"
                            }
                        ],
                        "nullable": true,
                        "description": "A suggested action that initiates a native action on the device when tapped. Mutually exclusive with reply."
                    }
                },
                "type": "object"
            },
            "RCSSuggestedReply": {
                "description": "When tapped, sends the text reply back to the agent.",
                "required": [
                    "text",
                    "postback_data"
                ],
                "properties": {
                    "text": {
                        "description": "Text shown in the suggested reply and sent back to the agent when tapped. Maximum 25 characters.",
                        "type": "string",
                        "maxLength": 25,
                        "example": "Yes, I agree"
                    },
                    "postback_data": {
                        "description": "The payload (base64-encoded or plain string) that the agent receives in a user event when the user taps the suggested reply. Maximum 2048 characters.",
                        "type": "string",
                        "maxLength": 2048,
                        "example": "reply_agree_clicked"
                    }
                },
                "type": "object"
            },
            "RCSSuggestedAction": {
                "description": "When tapped, initiates the corresponding native action on the device.",
                "required": [
                    "text",
                    "postback_data"
                ],
                "properties": {
                    "text": {
                        "description": "Text shown in the suggested action. Maximum 25 characters.",
                        "type": "string",
                        "maxLength": 25,
                        "example": "Call us"
                    },
                    "postback_data": {
                        "description": "Payload sent to the agent when the user taps the suggested action. Maximum 2048 characters.",
                        "type": "string",
                        "maxLength": 2048,
                        "example": "action_call_clicked"
                    },
                    "fallback_url": {
                        "description": "Fallback URL to use if a client doesn't support a suggested action. Opens in a new browser window.",
                        "type": "string",
                        "format": "uri",
                        "example": "https://example.com/fallback",
                        "nullable": true
                    },
                    "dial_action": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/RCSDialAction"
                            }
                        ],
                        "nullable": true,
                        "description": "Opens the user's default dialer app with the specified phone number. Mutually exclusive with other actions."
                    },
                    "view_location_action": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/RCSViewLocationAction"
                            }
                        ],
                        "nullable": true,
                        "description": "Opens the user's default map app to view a location. Mutually exclusive with other actions."
                    },
                    "create_calendar_event_action": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/RCSCreateCalendarEventAction"
                            }
                        ],
                        "nullable": true,
                        "description": "Opens the user's default calendar app to create an event. Mutually exclusive with other actions."
                    },
                    "open_url_action": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/RCSOpenUrlAction"
                            }
                        ],
                        "nullable": true,
                        "description": "Opens the specified URL in the user's default browser or registered app. Mutually exclusive with other actions."
                    }
                },
                "type": "object"
            },
            "RCSDialAction": {
                "description": "Opens the user's default dialer app with the specified phone number filled in.",
                "required": [
                    "phone_number"
                ],
                "properties": {
                    "phone_number": {
                        "description": "The phone number in E.164 format.",
                        "type": "string",
                        "example": "+48123456789"
                    }
                },
                "type": "object"
            },
            "RCSViewLocationAction": {
                "description": "Opens the user's default map app to view a specified location.",
                "properties": {
                    "lat_long": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/RCSLatLng"
                            }
                        ],
                        "nullable": true,
                        "description": "The latitude and longitude of the specified location."
                    },
                    "label": {
                        "description": "The label of the pin dropped at the location.",
                        "type": "string",
                        "example": "Our Office",
                        "nullable": true
                    }
                },
                "type": "object"
            },
            "RCSCreateCalendarEventAction": {
                "description": "Opens the user's default calendar app to create a new event with pre-filled data.",
                "properties": {
                    "start_time": {
                        "$ref": "#/components/schemas/RCSTimestamp"
                    },
                    "end_time": {
                        "$ref": "#/components/schemas/RCSTimestamp"
                    },
                    "title": {
                        "description": "Event title.",
                        "type": "string",
                        "example": "Team Meeting"
                    }
                },
                "type": "object"
            },
            "RCSOpenUrlAction": {
                "description": "Opens the specified URL in the user's default browser or a registered app handler.",
                "required": [
                    "url"
                ],
                "properties": {
                    "url": {
                        "description": "The URL to open.",
                        "type": "string",
                        "format": "uri",
                        "example": "https://example.com/special-offer"
                    }
                },
                "type": "object"
            },
            "RCSLatLng": {
                "description": "Geographic coordinates (latitude and longitude).",
                "required": [
                    "latitude",
                    "longitude"
                ],
                "properties": {
                    "latitude": {
                        "description": "The latitude in degrees. Must be in the range [-90.0, +90.0].",
                        "type": "number",
                        "format": "double",
                        "maximum": 90,
                        "minimum": -90,
                        "example": 52.2297
                    },
                    "longitude": {
                        "description": "The longitude in degrees. Must be in the range [-180.0, +180.0].",
                        "type": "number",
                        "format": "double",
                        "maximum": 180,
                        "minimum": -180,
                        "example": 21.0122
                    }
                },
                "type": "object"
            },
            "RCSTimestamp": {
                "description": "A point in time, represented as seconds and nanoseconds since Unix epoch.",
                "properties": {
                    "seconds": {
                        "description": "Seconds of UTC time since Unix epoch (1970-01-01T00:00:00Z).",
                        "type": "integer",
                        "format": "int64",
                        "example": 1735689600
                    },
                    "nanos": {
                        "description": "Non-negative fractions of a second at nanosecond resolution (0 to 999,999,999).",
                        "type": "integer",
                        "format": "int32",
                        "maximum": 999999999,
                        "minimum": 0,
                        "example": 0
                    }
                },
                "type": "object"
            },
            "Blacklist": {
                "properties": {
                    "email": {
                        "description": "Email address",
                        "type": "string"
                    },
                    "smtpAccount": {
                        "description": "SMTP account",
                        "type": "string"
                    },
                    "reason": {
                        "description": "Reason for adding to the blacklist ( from: /email/blacklist/reason )",
                        "type": "string"
                    },
                    "comment": {
                        "description": "Comment on the entry",
                        "type": "string"
                    },
                    "counter": {
                        "description": "Number of bounces",
                        "type": "string"
                    },
                    "createdAt": {
                        "description": "Date of creation",
                        "type": "integer"
                    },
                    "updatedAt": {
                        "description": "Last update date",
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "BlacklistDomain": {
                "description": "The domain you want to use in action.",
                "properties": {
                    "domain": {
                        "description": "Domain to add to blacklist.",
                        "type": "string",
                        "example": "domain.com"
                    }
                },
                "type": "object"
            },
            "EmailCampaignClick": {
                "description": "Email campaign click object",
                "properties": {
                    "link": {
                        "type": "string"
                    },
                    "clickTime": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string"
                    },
                    "count": {
                        "type": "integer"
                    },
                    "campaignId": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "EmailCampaign": {
                "description": "Email campaign object",
                "properties": {
                    "externalId": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "subject": {
                        "type": "string"
                    },
                    "fromName": {
                        "type": "string"
                    },
                    "fromAddress": {
                        "type": "string"
                    },
                    "replyTo": {
                        "type": "string"
                    },
                    "groupId": {
                        "type": "string",
                        "nullable": true
                    },
                    "scheduleTime": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "EmailCampaignOpen": {
                "description": "Email campaign open object",
                "properties": {
                    "readReportTime": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string"
                    },
                    "campaignId": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "EmailCampaignsRecipient": {
                "description": "Email campaign recipient object",
                "properties": {
                    "code": {
                        "type": "integer"
                    },
                    "email": {
                        "type": "string"
                    },
                    "campaignId": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "EmailCampaignsStateReport": {
                "description": "Email campaign state object",
                "properties": {
                    "state": {
                        "type": "string",
                        "example": "sent"
                    }
                },
                "type": "object"
            },
            "RunnableEmailCampaignOutputObject": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/EmailCampaign"
                    },
                    {
                        "$ref": "#/components/schemas/EmailCampaignsStateReport"
                    }
                ]
            },
            "SingleSmsCampaign": {
                "description": "Sms campaign click object",
                "properties": {
                    "campaignId": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string"
                    },
                    "senderId": {
                        "type": "string"
                    },
                    "priority": {
                        "type": "boolean"
                    },
                    "recipientsCount": {
                        "type": "integer"
                    },
                    "unicode": {
                        "type": "boolean"
                    },
                    "validity": {
                        "type": "integer"
                    },
                    "flash": {
                        "type": "boolean"
                    },
                    "trackLinks": {
                        "type": "boolean"
                    },
                    "scheduleTime": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "SmsCampaignClick": {
                "description": "Sms campaign click object",
                "properties": {
                    "link": {
                        "type": "string"
                    },
                    "clickTime": {
                        "type": "string"
                    },
                    "number": {
                        "type": "string"
                    },
                    "count": {
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "SmsCampaignsRecipient": {
                "description": "Sms campaign recipient object",
                "properties": {
                    "Number": {
                        "type": "string"
                    },
                    "ReceivedTime": {
                        "type": "string"
                    },
                    "ResultCode": {
                        "description": "Possible values: `SMS_SEND`, `SMS_ERROR`, `SMS_WAITING`, `SMS_CANCELED`, `SMS_BAD_NUMBER`, `SMS_MESSAGE_TOO_LONG`, `SMS_MESSAGE_INCORRECT`, `SMS_MESSAGE_TOO_SHORT`, `SMS_UNKNOWN_ERROR`",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "SmsCampaignsStateReport": {
                "description": "Sms campaign state object",
                "properties": {
                    "state": {
                        "type": "string",
                        "example": "sent"
                    }
                },
                "type": "object"
            },
            "PushResponseObject": {
                "required": [
                    "receiver",
                    "type"
                ],
                "properties": {
                    "receiver": {
                        "description": "Receiver device-id, email or phone number.",
                        "type": "string",
                        "example": "example-device-id"
                    },
                    "externalId": {
                        "description": "Custom id. Globally unique!",
                        "type": "string",
                        "example": "xxx-xxx-xxx-xxx"
                    },
                    "type": {
                        "description": "Type of receiver value. Enum values:\n1 - DEVICE_RECEIVER,\n2 - EMAIL_RECEIVER,\n3 - NUMBER_RECEIVER",
                        "type": "integer",
                        "enum": [
                            1,
                            2,
                            3
                        ],
                        "example": 1
                    }
                },
                "type": "object"
            },
            "AddContactInput": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ContactObject"
                    },
                    {
                        "properties": {
                            "addToGroup": {
                                "description": "The list which tells us to what groups we should add client,note that this field will be available only when addingcontact.",
                                "type": "array",
                                "items": {
                                    "type": "integer"
                                }
                            }
                        },
                        "type": "object"
                    }
                ]
            },
            "UpdateContactInput": {
                "oneOf": [
                    {
                        "properties": {
                            "externalId": {
                                "description": "The externalId of contact that will be updated.",
                                "type": "string",
                                "example": "bfa0b1b1-e636-b8ab-aba4-78a913be0144"
                            },
                            "data": {
                                "$ref": "#/components/schemas/ContactObjectUpdate"
                            }
                        },
                        "type": "object"
                    },
                    {
                        "properties": {
                            "id": {
                                "description": "The id of contact that will be updated.",
                                "type": "string",
                                "example": 1
                            },
                            "data": {
                                "$ref": "#/components/schemas/ContactObjectUpdate"
                            }
                        },
                        "type": "object"
                    }
                ]
            },
            "AdditionalField": {
                "properties": {
                    "fieldName": {
                        "type": "string"
                    },
                    "fieldType": {
                        "description": "Available types: string, datetime, number, boolean",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "Segment": {
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "createdTime": {
                        "type": "number"
                    }
                },
                "type": "object"
            },
            "SegmentCount": {
                "properties": {
                    "count": {
                        "type": "number"
                    }
                },
                "type": "object"
            },
            "TemplateObject": {
                "required": [
                    "html",
                    "text",
                    "name",
                    "smtpAccount"
                ],
                "properties": {
                    "html": {
                        "description": "The HTML content of your message.",
                        "type": "string"
                    },
                    "text": {
                        "description": "The plain text content of your message.",
                        "type": "string"
                    },
                    "name": {
                        "description": "The name of the new template.",
                        "type": "string"
                    },
                    "externalId": {
                        "description": "The unique ID of the new template. If you won't add it the externalId will be generated in the response.",
                        "type": "string"
                    },
                    "smtpAccount": {
                        "description": "The name of your smtp account you want the new template to be saved on.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "EmailClick": {
                "properties": {
                    "messageId": {
                        "type": "string"
                    },
                    "date": {
                        "type": "string"
                    },
                    "to": {
                        "type": "string"
                    },
                    "smtpAccount": {
                        "type": "string"
                    },
                    "ip": {
                        "type": "string"
                    },
                    "browser": {
                        "type": "string"
                    },
                    "os": {
                        "type": "string"
                    },
                    "userAgent": {
                        "type": "string"
                    },
                    "link": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "TemplateObjectWithTime": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/TemplateObject"
                    },
                    {
                        "properties": {
                            "createdAt": {
                                "type": "string"
                            }
                        },
                        "type": "object"
                    }
                ]
            },
            "EmailOpen": {
                "properties": {
                    "messageId": {
                        "type": "string"
                    },
                    "date": {
                        "type": "string"
                    },
                    "to": {
                        "type": "string"
                    },
                    "smtpAccount": {
                        "type": "string"
                    },
                    "ip": {
                        "type": "string"
                    },
                    "browser": {
                        "type": "string"
                    },
                    "os": {
                        "type": "string"
                    },
                    "userAgent": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "SmtpAccount": {
                "properties": {
                    "smtpAccount": {
                        "type": "string"
                    },
                    "smtpName": {
                        "type": "string"
                    },
                    "smtpType": {
                        "type": "string"
                    },
                    "vps": {
                        "type": "array",
                        "items": {
                            "properties": {
                                "vpsName": {
                                    "type": "string"
                                },
                                "host": {
                                    "type": "string"
                                },
                                "vpsType": {
                                    "type": "string"
                                },
                                "ip": {
                                    "type": "string"
                                }
                            },
                            "type": "object"
                        }
                    }
                },
                "type": "object"
            },
            "GroupWithCreateDate": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/GroupObject"
                    },
                    {
                        "properties": {
                            "createdAt": {
                                "description": "Unix timestamp",
                                "type": "number"
                            }
                        },
                        "type": "object"
                    }
                ]
            },
            "UpsertContactInput": {
                "properties": {
                    "email": {
                        "description": "Valid email address.",
                        "type": "string"
                    },
                    "number": {
                        "description": "Phone number in format +48XXXXXXXXX.",
                        "type": "string"
                    },
                    "pushId": {
                        "description": "PushId is finale contact identifier in push channel. It consists of the values of the fields used in the `/v2.1/push/register` endpoint: `registrationId` and `appId`, separated by \"|||\".",
                        "type": "string",
                        "example": "some_registration_id|||some_app_id"
                    },
                    "extId": {
                        "description": "ExternalId of contact.",
                        "type": "string"
                    },
                    "companyName": {
                        "description": "Company name.",
                        "type": "string"
                    },
                    "firstName": {
                        "description": "First name.",
                        "type": "string"
                    },
                    "lastName": {
                        "description": "Last name.",
                        "type": "string"
                    },
                    "occurredAt": {
                        "description": "Date when identification occurred. Date should be unix timestamp.",
                        "type": "integer"
                    },
                    "additionalStringFields": {
                        "description": "Additional fields with string type values.",
                        "type": "object",
                        "example": {
                            "some_field_name": "some_field_value",
                            "some_field_name2": "some_field_value2"
                        },
                        "additionalProperties": true
                    },
                    "additionalBoolFields": {
                        "description": "Additional fields with bool type values.",
                        "type": "object",
                        "example": {
                            "some_bool_field": true,
                            "some_bool_field2": false
                        },
                        "additionalProperties": true
                    },
                    "additionalNumericFields": {
                        "description": "Additional fields with numeric type values.",
                        "type": "object",
                        "example": {
                            "some_numeric_field_name": 123,
                            "some_numeric_field_name2": 124
                        },
                        "additionalProperties": true
                    },
                    "additionalDateFields": {
                        "description": "Additional fields with date type values. Date should be unix timestamp.",
                        "type": "object",
                        "example": {
                            "some_date_field_name": 1584112094
                        },
                        "additionalProperties": true
                    }
                },
                "type": "object"
            },
            "ConnectApiEventsInput": {
                "required": [
                    "email",
                    "number",
                    "eventName"
                ],
                "properties": {
                    "extId": {
                        "description": "ExternalId of contact.",
                        "type": "string"
                    },
                    "email": {
                        "description": "Valid email address. Required if phone number is not provided",
                        "type": "string"
                    },
                    "number": {
                        "description": "Phone number in format +48XXXXXXXXX.Required if email is not provided",
                        "type": "string"
                    },
                    "eventName": {
                        "description": "Name of the event.",
                        "type": "string"
                    },
                    "userData": {
                        "description": "Field with non standard values.",
                        "type": "object"
                    },
                    "additionalStringFields": {
                        "description": "Additional fields with string type values.",
                        "type": "object",
                        "example": {
                            "some_field_name": "some_field_value",
                            "some_field_name2": "some_field_value2"
                        },
                        "additionalProperties": true
                    },
                    "additionalBoolFields": {
                        "description": "Additional fields with bool type values.",
                        "type": "object",
                        "example": {
                            "some_bool_field": true,
                            "some_bool_field2": false
                        },
                        "additionalProperties": true
                    },
                    "additionalNumericFields": {
                        "description": "Additional fields with numeric type values.",
                        "type": "object",
                        "example": {
                            "some_numeric_field_name": 123,
                            "some_numeric_field_name2": 124
                        },
                        "additionalProperties": true
                    },
                    "additionalDateFields": {
                        "description": "Additional fields with date type values. Date should be unix timestamp.",
                        "type": "object",
                        "example": {
                            "some_date_field_name": 1584112094
                        },
                        "additionalProperties": true
                    }
                },
                "type": "object"
            },
            "MobileAgent": {
                "description": "Mobile agent details",
                "properties": {
                    "language": {
                        "type": "string"
                    },
                    "phoneModel": {
                        "type": "string"
                    },
                    "systemName": {
                        "type": "string"
                    },
                    "systemVersion": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "PushRegister": {
                "properties": {
                    "appId": {
                        "description": "Your application identifier",
                        "type": "string"
                    },
                    "registrationId": {
                        "description": "Registration ID provided by operator.",
                        "type": "string"
                    },
                    "type": {
                        "description": "Type of mobile device (IOS or ANDROID).",
                        "type": "string"
                    },
                    "mobileAgent": {
                        "description": "Mobile agent details",
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MobileAgent"
                        }
                    },
                    "occurredAt": {
                        "description": "Date when identification occurred. Date should be unix timestamp.",
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "StatusResponse": {
                "properties": {
                    "emailTransactionalSendApi": {
                        "type": "integer"
                    },
                    "emailTransactionalSendSmtp": {
                        "type": "integer"
                    },
                    "emailTransactionalStats": {
                        "type": "integer"
                    },
                    "emailCampaigns": {
                        "type": "integer"
                    },
                    "pushTransactionalSend": {
                        "type": "integer"
                    },
                    "pushTransactionalStats": {
                        "type": "integer"
                    },
                    "pushCampaigns": {
                        "type": "integer"
                    },
                    "smsTransactionalSend": {
                        "type": "integer"
                    },
                    "smsTransactionalStats": {
                        "type": "integer"
                    },
                    "smsCampaigns": {
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "SmsInput": {
                "required": [
                    "sender",
                    "phoneNumbers",
                    "message"
                ],
                "properties": {
                    "sender": {
                        "description": "The sender ID that was previously added through the user panel and then accepted by our support team. Minimum length is 3 characters.",
                        "type": "string",
                        "maxLength": 15,
                        "minLength": 3
                    },
                    "message": {
                        "description": "The content of the SMS",
                        "type": "string",
                        "example": "Hello world!"
                    },
                    "phoneNumbers": {
                        "description": "The phone numbers of receivers.",
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "maxItems": 200,
                        "example": [
                            "+48111222333",
                            "+48111222444"
                        ]
                    },
                    "validity": {
                        "description": "The number of minutes the SMS will be valid (Max value = 4320) / 3 days",
                        "type": "number",
                        "maximum": 4320
                    },
                    "scheduleTime": {
                        "description": "SMS dispatch date set in the future, up to a maximum of 14 days.",
                        "type": "number"
                    },
                    "type": {
                        "description": "Type of SMS ( 0 - regular SMS, 1 - Flash SMS )",
                        "type": "number",
                        "default": 0
                    },
                    "shortLink": {
                        "description": "The URL shortener and tracker. Setting this property to 'true' will make the urls shorter and also urls will be tracked.",
                        "type": "boolean",
                        "default": false,
                        "example": true
                    },
                    "externalId": {
                        "description": "The unique identifier of the message. After sending a text message with external ID, it cannot be resent for next 24 hours. Cannot be longer than 64 characters.",
                        "type": "string",
                        "maxLength": 64,
                        "example": "xxxx-xxxx-xxxx"
                    }
                },
                "type": "object"
            },
            "SmsInputV2": {
                "required": [
                    "sender",
                    "phoneNumbers",
                    "message"
                ],
                "properties": {
                    "sender": {
                        "description": "The sender ID that was previously added through the user panel and then accepted by our support team. Minimum length is 3 characters.",
                        "type": "string",
                        "maxLength": 15,
                        "minLength": 3
                    },
                    "message": {
                        "description": "The content of the SMS",
                        "type": "string",
                        "example": "Hello world!"
                    },
                    "phoneNumbers": {
                        "description": "The phone numbers of receivers.",
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "maxItems": 200,
                        "example": [
                            "+48111222333",
                            "+48111222444"
                        ]
                    },
                    "validity": {
                        "description": "The number of minutes the SMS will be valid (Max value = 4320) / 3 days",
                        "type": "number",
                        "maximum": 4320
                    },
                    "scheduleTime": {
                        "description": "SMS dispatch date set in the future, up to a maximum of 14 days.",
                        "type": "number"
                    },
                    "type": {
                        "description": "Type of SMS ( 0 - regular SMS, 1 - Flash SMS )",
                        "type": "number",
                        "default": 0
                    },
                    "shortLink": {
                        "description": "The URL shortener and tracker. Setting this property to 'true' will make the urls shorter and also urls will be tracked.",
                        "type": "boolean",
                        "default": false,
                        "example": true
                    },
                    "externalId": {
                        "description": "The unique identifier of the message. After sending a text message with external ID, it cannot be resent for next 24 hours. Cannot be longer than 64 characters.",
                        "type": "string",
                        "maxLength": 64,
                        "example": "xxxx-xxxx-xxxx"
                    }
                },
                "type": "object"
            },
            "ViberMessageRequest": {
                "title": "Viber Message Request",
                "description": "Complete Viber message request structure with validation rules and business logic constraints",
                "required": [
                    "receivers",
                    "senderName",
                    "content"
                ],
                "properties": {
                    "receivers": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "senderName": {
                        "type": "string"
                    },
                    "externalId": {
                        "type": "string"
                    },
                    "content": {
                        "$ref": "#/components/schemas/ViberContent"
                    }
                },
                "type": "object"
            },
            "ViberContent": {
                "title": "Viber Content",
                "description": "Message content with allowed combinations. Must follow Viber content rules and validation.",
                "properties": {
                    "text": {
                        "type": "string",
                        "nullable": true
                    },
                    "image": {
                        "type": "string",
                        "nullable": true
                    },
                    "action": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/ViberAction"
                            }
                        ],
                        "nullable": true
                    }
                },
                "type": "object"
            },
            "ViberAction": {
                "title": "Viber Action Button",
                "description": "Action button configuration for interactive messages. Both title and targetUrl are required when action is present.",
                "required": [
                    "title",
                    "targetUrl"
                ],
                "properties": {
                    "title": {
                        "type": "string"
                    },
                    "targetUrl": {
                        "type": "string"
                    },
                    "trackClicks": {
                        "type": "boolean"
                    }
                },
                "type": "object"
            },
            "ViberErrorResponse": {
                "title": "Viber Error Response",
                "description": "Standard error response format for Viber API. All error responses follow this structure.",
                "properties": {
                    "status": {
                        "type": "string",
                        "example": "error"
                    },
                    "error": {
                        "properties": {
                            "code": {
                                "type": "string"
                            },
                            "message": {
                                "type": "string"
                            },
                            "details": {
                                "type": "string"
                            }
                        },
                        "type": "object"
                    }
                },
                "type": "object"
            },
            "ViberMultiStatusResponse": {
                "title": "Viber Multi-Status Response (207)",
                "description": "Response when some messages succeed and some fail - partial success scenario",
                "properties": {
                    "errors": {
                        "description": "Array of errors for failed recipients",
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ViberErrorItem"
                        }
                    },
                    "data": {
                        "description": "Array of successful message data",
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ViberSuccessItem"
                        }
                    },
                    "meta": {
                        "$ref": "#/components/schemas/ViberResponseMeta"
                    }
                },
                "type": "object"
            },
            "ViberCompleteFailureResponse": {
                "title": "Viber Complete Failure Response (400)",
                "description": "Response when all recipients are filtered out during validation",
                "properties": {
                    "errors": {
                        "description": "Array of errors that caused complete failure",
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ViberErrorItem"
                        }
                    },
                    "meta": {
                        "$ref": "#/components/schemas/ViberResponseMeta"
                    }
                },
                "type": "object"
            },
            "ViberErrorItem": {
                "title": "Viber Error Item",
                "description": "Individual error item structure",
                "properties": {
                    "title": {
                        "type": "string",
                        "example": "Country prefix not authorized"
                    },
                    "message": {
                        "type": "string",
                        "example": "Country prefix for receiver 43514967888 is not authorized. Please reach out to customer service for help."
                    },
                    "code": {
                        "type": "string",
                        "example": "E-VIB-2-003"
                    }
                },
                "type": "object"
            },
            "ViberSuccessItem": {
                "title": "Viber Success Item",
                "description": "Individual success item structure",
                "properties": {
                    "externalId": {
                        "type": "string",
                        "example": "c7fc274358-e75afa2261-65981f07b2-8772740ab5"
                    }
                },
                "type": "object"
            },
            "ViberResponseMeta": {
                "title": "Viber Response Metadata",
                "description": "Metadata included in all Viber API responses",
                "properties": {
                    "numberOfErrors": {
                        "description": "Count of errors encountered",
                        "type": "integer",
                        "example": 1
                    },
                    "numberOfData": {
                        "description": "Count of successful messages",
                        "type": "integer",
                        "example": 1
                    },
                    "status": {
                        "description": "HTTP status code",
                        "type": "integer",
                        "example": 207
                    },
                    "uniqId": {
                        "description": "Unique identifier for this request",
                        "type": "string",
                        "example": "67983c4eef"
                    }
                },
                "type": "object"
            },
            "ViberErrorCodes": {
                "title": "Viber Error Codes Reference",
                "description": "Complete list of Viber API error codes and their meanings. These codes are returned in error responses.",
                "properties": {
                    "E-VIB-1-001": {
                        "description": "Validation error - General validation failure",
                        "type": "string"
                    },
                    "E-VIB-1-002": {
                        "description": "Not allowed content - Invalid message combination",
                        "type": "string"
                    },
                    "E-VIB-2-001": {
                        "description": "Viber service not fully configured",
                        "type": "string"
                    },
                    "E-VIB-2-002": {
                        "description": "SenderName not registered",
                        "type": "string"
                    },
                    "E-VIB-2-003": {
                        "description": "Receiver country prefix not authorized",
                        "type": "string"
                    },
                    "E-VIB-3-001": {
                        "description": "Viber system error",
                        "type": "string"
                    },
                    "E-VIB-4-001": {
                        "description": "External ID already exists (within 24 hours)",
                        "type": "string"
                    },
                    "E-VIB-4-002": {
                        "description": "Duplicate receiver found",
                        "type": "string"
                    },
                    "E-VIB-4-003": {
                        "description": "No valid receivers found after validation",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "ViberAllowedCombinations": {
                "title": "Allowed Message Content Combinations",
                "description": "Valid combinations of content elements that can be sent together.",
                "properties": {
                    "text": {
                        "description": "Text only message",
                        "type": "string"
                    },
                    "image": {
                        "description": "Image only message",
                        "type": "string"
                    },
                    "action,text": {
                        "description": "Text with action button",
                        "type": "string"
                    },
                    "action,image,text": {
                        "description": "Text, image, and action button",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "EmailCampaignInputObject": {
                "required": [
                    "name",
                    "htmlFromWebSiteUrl",
                    "htmlContent",
                    "subject",
                    "fromName",
                    "fromAddress",
                    "groupId",
                    "testAddresses"
                ],
                "properties": {
                    "campaignId": {
                        "description": "The unique ID of the campaign.",
                        "type": "string",
                        "maxLength": 64,
                        "pattern": "/^[a-zA-Z-_]+$/",
                        "example": "first-campaign-id"
                    },
                    "name": {
                        "description": "The name of the campaign.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "firstCampaign"
                    },
                    "description": {
                        "description": "The description of the campaign.",
                        "type": "string",
                        "maxLength": 500,
                        "example": "My first campaign"
                    },
                    "subject": {
                        "description": "The subject of the message in the campaign.",
                        "type": "string",
                        "maxLength": 500,
                        "example": "Hello world"
                    },
                    "fromName": {
                        "description": "The name of the sender.",
                        "type": "string",
                        "maxLength": 150,
                        "example": "John Doe"
                    },
                    "fromAddress": {
                        "description": "The email address of the sender.",
                        "type": "string",
                        "maxLength": 500,
                        "example": "john.doe@example.pl"
                    },
                    "replyTo": {
                        "description": "The email address to reply to.",
                        "type": "string",
                        "maxLength": 500,
                        "example": "john.doe@example.pl"
                    },
                    "htmlFromWebSiteUrl": {
                        "description": "The URL of the website.",
                        "type": "string"
                    },
                    "htmlContent": {
                        "description": "The html of the message.",
                        "type": "string",
                        "example": "<h1> hello there</h1>"
                    },
                    "textContent": {
                        "description": "The text of the message.",
                        "type": "string",
                        "example": "hello there!"
                    },
                    "groupId": {
                        "description": "The externalId of the group the message will be sent to. This ID can be found using List group method.",
                        "type": "string",
                        "example": "test-group-id"
                    },
                    "trackLinks": {
                        "description": "The URL shortener and tracker. Setting this property to 'true' will make the urls shorter and also urls will be tracked.",
                        "type": "boolean",
                        "example": true
                    },
                    "googleAnalytics": {
                        "description": "The optional campaign tracking parameter provided by Google Analytics.",
                        "type": "boolean",
                        "example": true
                    },
                    "scheduleTime": {
                        "description": "The date the message will be set off. Be aware that if the campaign is going to be sent to many of recipients (thousands and more) the schedule date means then preparing all contacts firstly and then sending. For example, there is a campaign scheduled for 2020-01-01 10:00:00 so at 10 o'clock our system will start to collect all contacts from chosen group which can take sometimes more than an hour and then the messages will be sent to recipients. ",
                        "type": "string",
                        "pattern": "/^\\d{4}-\\d{2}-\\d{2}\\s*(?:\\d{2}:\\d{2}(?::\\d{2})?)?$/",
                        "example": "2020-09-10 10:15:00"
                    },
                    "state": {
                        "description": "If set to 'editable' allows to prevent sending email campaign immediately after creation",
                        "type": "string",
                        "default": "editable",
                        "enum": [
                            "editable",
                            "sendable"
                        ],
                        "example": "editable"
                    },
                    "testAddresses": {
                        "description": "The email addresses to send the campaign to see if the message is ok.",
                        "type": "array",
                        "items": {
                            "type": "string",
                            "example": "john.doe@example.pl"
                        },
                        "minItems": 1
                    },
                    "confirmationAddresses": {
                        "description": "The email addresses to send info about campaign end.",
                        "type": "array",
                        "items": {
                            "type": "string",
                            "example": "john.doe@example.pl"
                        },
                        "minItems": 1
                    }
                },
                "type": "object"
            },
            "PushToObject": {
                "required": [
                    "receiver",
                    "type"
                ],
                "properties": {
                    "receiver": {
                        "description": "The id, email or phone number of the receiver.",
                        "type": "string",
                        "example": "example-device-id"
                    },
                    "externalId": {
                        "description": "Custom id. Globally unique!",
                        "type": "string",
                        "example": "xxx-xxx-xxx-xxx"
                    },
                    "type": {
                        "description": "Type of receiver value. Enum values:\n\n    1 - DEVICE_RECEIVER,\n    2 - EMAIL_RECEIVER,\n    3 - NUMBER_RECEIVER\n\n    ",
                        "type": "integer",
                        "enum": [
                            1,
                            2,
                            3
                        ],
                        "example": 1
                    }
                },
                "type": "object"
            },
            "PushInput": {
                "required": [
                    "applications",
                    "title",
                    "body",
                    "defaultLanguage",
                    "to"
                ],
                "properties": {
                    "applications": {
                        "description": "The id of applications to which we want to send push notification.",
                        "type": "array",
                        "items": {
                            "type": "string",
                            "example": "XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
                        },
                        "minItems": 1
                    },
                    "to": {
                        "description": "Push notification receivers",
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PushToObject"
                        },
                        "maxItems": 100,
                        "minItems": 1
                    },
                    "title": {
                        "description": "The push title that can be translated into multiple languages. Property name can have 2 characters maximum and property value maximum of 50 characters.",
                        "type": "object",
                        "example": {
                            "pl": "test",
                            "en": "test"
                        },
                        "additionalProperties": true
                    },
                    "body": {
                        "description": "The push body that can be translated into multiple languages. Property name can have 2 characters maximum and property value maximum of 400  characters.",
                        "type": "object",
                        "example": {
                            "pl": "test",
                            "en": "test"
                        },
                        "additionalProperties": true
                    },
                    "defaultLanguage": {
                        "description": "The default language for translating push in Unicode language identifier representation.",
                        "type": "string",
                        "example": "pl"
                    },
                    "image": {
                        "description": "The absolute URL of image. Image requirements:\n\n    Android:\n\n    aspect ratio 2/1\n    format JPG PNG GIF\n    dimensions:\n    min 512x256\n    balanced 1044x720\n    max 2088x1440\n\n    iOS\n\n    size < 10MB\n    format JPG PNG GIF\n    dimensions max 2436x2436\n\n    ",
                        "type": "string",
                        "maxLength": 250,
                        "example": "http://absolute.url/to/image"
                    },
                    "silent": {
                        "description": "Should notification be silent or not.",
                        "type": "boolean",
                        "default": false
                    },
                    "sound": {
                        "description": "The push sound. Use resource name or 'DEAFULT' string",
                        "type": "string",
                        "maxLength": 250,
                        "example": "sound-file.wav"
                    },
                    "scheduleTime": {
                        "description": "The date the Push will be set off.",
                        "type": "string",
                        "pattern": "/^\\d{4}-\\d{2}-\\d{2}\\s*(?:\\d{2}:\\d{2}(?::\\d{2})?)?$/",
                        "example": "2020-01-01 12:12:12"
                    },
                    "ttl": {
                        "description": "The unix timestamp parameter specifying the maximum lifetime of notification. Must be in future. The push service will try to deliver the notification to the receiver until the specified day.",
                        "type": "number",
                        "minimum": 0,
                        "example": 1540377351
                    },
                    "externalData": {
                        "description": "The additional key/value pair you can add to the push notification. Property name can contain max of 50 signs",
                        "type": "object",
                        "example": {
                            "test": "x",
                            "test1": false
                        },
                        "additionalProperties": true
                    },
                    "advanced": {
                        "description": "The advanced options for push notification.",
                        "properties": {
                            "subtitle": {
                                "description": "The push notification subtitle.",
                                "type": "string",
                                "maxLength": 255,
                                "example": "subtitle-only-ios"
                            },
                            "lockscreenVisibility": {
                                "description": "The parameter for visibility options. Available values:\n\n    1 - PUBLIC,\n    2 - PRIVATE,\n    3 - SECRET\n\n    ",
                                "type": "number",
                                "enum": [
                                    1,
                                    2,
                                    3
                                ],
                                "example": 1
                            },
                            "icon": {
                                "description": "The push notification icon",
                                "properties": {
                                    "small": {
                                        "description": "The parameter for push notification icon's size. Use the icon path here.",
                                        "type": "string",
                                        "example": "/relative-icon-file-path"
                                    },
                                    "large": {
                                        "description": "The parameter for push notification icon's size. Use the icon path here.",
                                        "type": "string",
                                        "example": "/relative-icon-file-path"
                                    }
                                },
                                "type": "object"
                            }
                        },
                        "type": "object"
                    },
                    "action": {
                        "description": "Action that should be executed after push click",
                        "properties": {
                            "url": {
                                "description": "The URL to take the user to after button click.",
                                "type": "string",
                                "example": "http://absolute.url/to/redirect/on/click"
                            },
                            "type": {
                                "description": "The type of the action:\n\n    1 - NONE\n    2 - BROWSER\n    3 - WEBVIEW\n    4 - DEEPLINK\n\n    ",
                                "type": "integer",
                                "enum": [
                                    1,
                                    2,
                                    3,
                                    4
                                ],
                                "example": 2
                            }
                        },
                        "type": "object"
                    }
                },
                "type": "object"
            },
            "HlrObject": {
                "properties": {
                    "phone": {
                        "description": "Phone numer which is checking",
                        "type": "string"
                    },
                    "status": {
                        "description": "Current SMS status: OK - action completed successfully, ERR - something went wrong ",
                        "type": "string"
                    },
                    "imsi": {
                        "description": "A unique number assigned to each SIM card in the GSM or UMTS network. In some cases it may only contain the country number and the network number .",
                        "type": "integer"
                    },
                    "network": {
                        "description": "Alphanumeric name of the network from which the number comes.",
                        "type": "string"
                    },
                    "ported": {
                        "description": "Recipient number",
                        "type": "string"
                    },
                    "networkPorted": {
                        "description": "Alphanumeric name of the network to which the number is currently assigned.",
                        "type": "string"
                    },
                    "description": {
                        "description": "Possible error code while checking the number.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "PushCampaign": {
                "properties": {
                    "name": {
                        "description": "Push campaign name.",
                        "type": "string"
                    },
                    "description": {
                        "description": "Push campaign description.",
                        "type": "string"
                    },
                    "externalId": {
                        "description": "Push campaign name external id.",
                        "type": "string"
                    },
                    "scheduleTime": {
                        "description": "Push campaign schedule time.",
                        "type": "string"
                    },
                    "number": {
                        "description": "Amount of campaign recipients.",
                        "type": "integer"
                    },
                    "groupId": {
                        "description": "Recipients group id.",
                        "type": "string"
                    },
                    "title": {
                        "description": "Push campaign title.",
                        "type": "string"
                    },
                    "body": {
                        "description": "Push campaign body.",
                        "type": "string"
                    },
                    "image": {
                        "description": "Push campaign image.",
                        "type": "string"
                    },
                    "silent": {
                        "description": "Should notification be silent or not.",
                        "type": "boolean"
                    },
                    "sound": {
                        "description": "The push sound.",
                        "type": "string"
                    },
                    "ttl": {
                        "description": "The unix timestamp parameter specifying the maximum lifetime of notification.",
                        "type": "integer"
                    },
                    "iosSubtitle": {
                        "description": "Phone numer which is checking",
                        "type": "string"
                    },
                    "androidLockscreenVisibility": {
                        "description": "The parameter for visibility options. Available values:\n    PUBLIC,\n    PRIVATE,\n    SECRET",
                        "type": "string"
                    },
                    "androidLargeIcon": {
                        "description": "The parameter for push notification icon's size. Use the icon path here.",
                        "type": "string",
                        "example": "/relative-icon-file-path"
                    },
                    "androidSmallIcon": {
                        "description": "The parameter for push notification icon's size. Use the icon path here.",
                        "type": "string",
                        "example": "/relative-icon-file-path"
                    },
                    "apps": {
                        "description": "Pola kt\u00f3re zostan\u0105 dodane o odpowiedzi",
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "externalData": {
                        "description": "External data.",
                        "type": "object",
                        "example": {
                            "key1": "value1",
                            "kay2": "value2"
                        },
                        "additionalProperties": true
                    },
                    "actions": {
                        "description": "Pola kt\u00f3re zostan\u0105 dodane o odpowiedzi",
                        "type": "array",
                        "items": {
                            "properties": {
                                "mainAction": {
                                    "description": "Is main action",
                                    "type": "boolean",
                                    "example": "true"
                                },
                                "type": {
                                    "description": "Action type",
                                    "type": "string",
                                    "example": "BROWSER"
                                },
                                "url": {
                                    "description": "",
                                    "type": "string",
                                    "example": "www.emaillab.io"
                                },
                                "actionId": {
                                    "description": "",
                                    "type": "string",
                                    "example": "123456"
                                },
                                "text": {
                                    "description": "",
                                    "type": "string",
                                    "example": "Text"
                                },
                                "icon": {
                                    "description": "",
                                    "type": "string",
                                    "example": "/ikona/pl"
                                }
                            },
                            "type": "object"
                        }
                    }
                },
                "type": "object"
            },
            "PushCampaignRecipients": {
                "properties": {
                    "device": {
                        "description": "Device id.",
                        "type": "string"
                    },
                    "externalId": {
                        "description": "Contact external_id",
                        "type": "string"
                    },
                    "receivedTime": {
                        "description": "Push recived time.",
                        "type": "string"
                    },
                    "appId": {
                        "description": "Application id.",
                        "type": "string"
                    },
                    "type": {
                        "description": "Push type. Example: IOS, ANDROID",
                        "type": "integer"
                    },
                    "resultCode": {
                        "description": "Result code.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "PushObject": [],
            "SmsDLRObjectV2": {
                "properties": {
                    "externalId": {
                        "description": "Unique own message identifier",
                        "type": "string",
                        "example": "121212121-12121212-121212-2121212"
                    },
                    "status": {
                        "description": "Current SMS status ( 0 - new, 1 - delivered, 2- not delivered )",
                        "type": "number",
                        "example": 1
                    },
                    "statusDesc": {
                        "description": "Status description(NEW, DELIVERED, UNDELIVERED, UNKNOWN)",
                        "type": "string",
                        "example": "DELIVERED"
                    },
                    "statusTime": {
                        "description": "Current SMS status date",
                        "type": "number",
                        "example": 1643723643
                    },
                    "webhookUrl": {
                        "description": "The URL for DLR (Delivery Report).  DLR is a feature that reports if the message has been delivered. If you want more inforations check section DLR in this documentation.",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "SmsDlr": {
                "properties": {
                    "id": {
                        "description": "Pola kt\u00f3re zostan\u0105 dodane o odpowiedzi",
                        "type": "string"
                    },
                    "sendId": {
                        "description": "Pola kt\u00f3re zostan\u0105 dodane o odpowiedzi",
                        "type": "string"
                    },
                    "report": {
                        "description": "Pola kt\u00f3re zostan\u0105 dodane o odpowiedzi",
                        "type": "string"
                    },
                    "reportTime": {
                        "description": "Pola kt\u00f3re zostan\u0105 dodane o odpowiedzi",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "SmsObject": {
                "properties": {
                    "id": {
                        "description": "Unique SMS id",
                        "type": "number"
                    },
                    "sender": {
                        "description": "SMS sender's phone number or name no longer than 11 characters",
                        "type": "string",
                        "maxLength": 15
                    },
                    "message": {
                        "description": "The content of the SMS",
                        "type": "string"
                    },
                    "phoneNumber": {
                        "description": "Recipient number",
                        "type": "string"
                    },
                    "scheduleTime": {
                        "description": "Date the message was sent. Maximum in 14 days. UnixTimeStamp in UTC timezone.",
                        "type": "number"
                    },
                    "type": {
                        "description": "Type of SMS ( 0 - regular SMS, 1 - Flash SMS )",
                        "type": "number"
                    },
                    "shortLink": {
                        "description": "Make short links in the SMS",
                        "type": "boolean"
                    },
                    "externalId": {
                        "description": "Unique own message identifier",
                        "type": "string"
                    },
                    "status": {
                        "description": "Current SMS status 1 - new, 2 - move to send, 9 - rejected, 21 - sent ",
                        "type": "number"
                    },
                    "statusTime": {
                        "description": "Current SMS status date",
                        "type": "number"
                    },
                    "subscribeUrl": {
                        "description": "Url where you can find current SMS status",
                        "type": "string"
                    },
                    "createTime": {
                        "description": "Date of first SMS status",
                        "type": "number"
                    },
                    "smsPrice": {
                        "description": "Price of SMS",
                        "type": "number"
                    },
                    "currency": {
                        "description": "Currency( 0 - PLN, 1 - USD, 2 - EUR)",
                        "type": "number"
                    },
                    "numberOfParts": {
                        "description": "Number of SMSes sent in one message.",
                        "type": "number"
                    },
                    "encoding": {
                        "description": "Type of character encoding in SMS(0 - GSM7, 1 - UTF8)",
                        "type": "number"
                    }
                },
                "type": "object"
            },
            "SmsObjectSummary": {
                "properties": {
                    "id": {
                        "description": "Unique SMS id",
                        "type": "number"
                    },
                    "sender": {
                        "description": "SMS sender's number",
                        "type": "string"
                    },
                    "message": {
                        "description": "The content of the SMS",
                        "type": "string"
                    },
                    "phoneNumber": {
                        "description": "Recipient number",
                        "type": "string"
                    },
                    "scheduleTime": {
                        "description": "Date the message was sent. Maximum in 14 days. UnixTimeStamp in UTC timezone.",
                        "type": "number"
                    },
                    "type": {
                        "description": "Type of SMS ( 0 - regular SMS, 1 - Flash SMS )",
                        "type": "number"
                    },
                    "shortLink": {
                        "description": "Make short links in the SMS",
                        "type": "boolean"
                    },
                    "externalId": {
                        "description": "Unique own message identifier",
                        "type": "string"
                    },
                    "status": {
                        "description": "Current SMS status 1 - new, 2 - move to send, 9 - rejected, 21 - sent ",
                        "type": "number"
                    },
                    "statusTime": {
                        "description": "Current SMS status date",
                        "type": "number"
                    },
                    "subscribeUrl": {
                        "description": "Url where you can find current SMS status",
                        "type": "string"
                    },
                    "createTime": {
                        "description": "Date of first SMS status",
                        "type": "number"
                    },
                    "smsPrice": {
                        "description": "Price of SMS",
                        "type": "number"
                    },
                    "currency": {
                        "description": "Currency( 0 - PLN, 1 - USD, 2 - EUR)",
                        "type": "number"
                    },
                    "numberOfParts": {
                        "description": "Number of SMSes sent in one message.",
                        "type": "number"
                    },
                    "encoding": {
                        "description": "Type of character encoding in SMS(0 - GSM7, 1 - UTF8)",
                        "type": "number"
                    }
                },
                "type": "object"
            },
            "SmsObjectSummaryV2": {
                "properties": {
                    "sender": {
                        "description": "SMS sender's phone number or name no longer than 11 characters",
                        "type": "string",
                        "maxLength": 15
                    },
                    "message": {
                        "description": "The content of the SMS",
                        "type": "string"
                    },
                    "phoneNumber": {
                        "description": "Recipient number",
                        "type": "string"
                    },
                    "encoding": {
                        "description": "Type of character encoding in SMS (0 - GSM7, 1 - UTF8)",
                        "type": "integer"
                    },
                    "validity": {
                        "description": "SMS validity period in hours",
                        "type": "integer"
                    },
                    "scheduleTime": {
                        "description": "Date the message was sent. Maximum in 14 days. UnixTimeStamp in UTC timezone.",
                        "type": "integer",
                        "nullable": true
                    },
                    "type": {
                        "description": "Type of SMS (0 - regular SMS, 1 - Flash SMS)",
                        "type": "integer"
                    },
                    "shortLink": {
                        "description": "Make short links in the SMS",
                        "type": "boolean"
                    },
                    "externalId": {
                        "description": "Unique own message identifier",
                        "type": "string"
                    },
                    "externalIdUrl": {
                        "description": "URL to check SMS status using external ID",
                        "type": "string"
                    },
                    "status": {
                        "description": "Current SMS status (1 - new, 2 - move to send, 9 - rejected, 21 - delivered)",
                        "type": "integer"
                    },
                    "statusTime": {
                        "description": "Current SMS status date (UnixTimeStamp)",
                        "type": "integer"
                    },
                    "createTime": {
                        "description": "Date of first SMS status (UnixTimeStamp)",
                        "type": "integer"
                    },
                    "smsPrice": {
                        "description": "Price of SMS (multiply by 0.0001 to get actual amount in currency)",
                        "type": "integer"
                    },
                    "currency": {
                        "description": "Currency (0 - PLN, 1 - USD, 2 - EUR)",
                        "type": "integer"
                    },
                    "numberOfParts": {
                        "description": "Number of SMS parts sent in one message",
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "SmsObjectV2": {
                "properties": {
                    "sender": {
                        "description": "SMS sender's phone number or name no longer than 11 characters",
                        "type": "string",
                        "maxLength": 15
                    },
                    "message": {
                        "description": "The content of the SMS",
                        "type": "string"
                    },
                    "phoneNumber": {
                        "description": "Recipient number",
                        "type": "string"
                    },
                    "encoding": {
                        "description": "Type of character encoding in SMS (0 - GSM7, 1 - UTF8)",
                        "type": "integer"
                    },
                    "validity": {
                        "description": "SMS validity period in hours",
                        "type": "integer"
                    },
                    "scheduleTime": {
                        "description": "Date the message was sent. Maximum in 14 days. UnixTimeStamp in UTC timezone.",
                        "type": "integer",
                        "nullable": true
                    },
                    "type": {
                        "description": "Type of SMS (0 - regular SMS, 1 - Flash SMS)",
                        "type": "integer"
                    },
                    "shortLink": {
                        "description": "Make short links in the SMS",
                        "type": "boolean"
                    },
                    "externalId": {
                        "description": "Unique own message identifier",
                        "type": "string"
                    },
                    "externalIdUrl": {
                        "description": "URL to check SMS status using external ID",
                        "type": "string"
                    },
                    "status": {
                        "description": "Current SMS status (1 - new, 2 - move to send, 9 - rejected, 21 - delivered)",
                        "type": "integer"
                    },
                    "statusTime": {
                        "description": "Current SMS status date (UnixTimeStamp)",
                        "type": "integer"
                    },
                    "createTime": {
                        "description": "Date of first SMS status (UnixTimeStamp)",
                        "type": "integer"
                    },
                    "smsPrice": {
                        "description": "Price of SMS (multiply by 0.0001 to get actual amount in currency)",
                        "type": "integer"
                    },
                    "currency": {
                        "description": "Currency (0 - PLN, 1 - USD, 2 - EUR)",
                        "type": "integer"
                    },
                    "numberOfParts": {
                        "description": "Number of SMS parts sent in one message",
                        "type": "integer"
                    }
                },
                "type": "object"
            }
        },
        "responses": {
            "onlyMeta200": {
                "description": "Request was successfully processed",
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "meta": {
                                    "$ref": "#/components/schemas/MetaObject"
                                }
                            },
                            "type": "object"
                        }
                    }
                }
            },
            "202": {
                "description": "Client should wait number of second from Retry-After header before next request",
                "headers": {
                    "Retry-After": {
                        "schema": {
                            "description": "Indicates how long the user agent should wait before making a follow-up request",
                            "type": "integer"
                        }
                    },
                    "Expires": {
                        "schema": {
                            "description": "Contains the date after which the response is considered stale.",
                            "type": "string"
                        }
                    }
                },
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/MetaObject"
                        }
                    }
                }
            },
            "207": {
                "description": "Some of request body items were not processed due to validation errors",
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "data": {
                                    "$ref": "#/components/schemas/DataObject"
                                },
                                "meta": {
                                    "$ref": "#/components/schemas/MetaObject"
                                },
                                "errors": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/ErrorObject"
                                    }
                                }
                            },
                            "type": "object"
                        }
                    }
                }
            },
            "404": {
                "description": "Request was successfully processed but no results were returned",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/MetaObject"
                        }
                    }
                }
            },
            "400": {
                "description": "Bad Request - request was not processed due to validation errors",
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "meta": {
                                    "$ref": "#/components/schemas/MetaObject"
                                },
                                "errors": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/ErrorObject"
                                    }
                                }
                            },
                            "type": "object"
                        }
                    }
                }
            },
            "500": {
                "description": "Request was not processed due to server error",
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "meta": {
                                    "$ref": "#/components/schemas/MetaObject"
                                }
                            },
                            "type": "object"
                        }
                    }
                }
            }
        },
        "parameters": {
            "smtpAccount": {
                "name": "smtpAccount",
                "in": "query",
                "description": "The smtp account name.",
                "required": false,
                "schema": {
                    "type": "string"
                },
                "example": "1.test.smtp"
            },
            "messageId": {
                "name": "messageId",
                "in": "query",
                "description": "The unique ID of the message.",
                "required": false,
                "schema": {
                    "type": "string"
                },
                "example": "test0001@domena.pl"
            },
            "to": {
                "name": "to",
                "in": "query",
                "description": "The email address the email was sent to.",
                "required": false,
                "schema": {
                    "type": "string"
                },
                "example": "test@email.pl"
            },
            "limit": {
                "name": "limit",
                "in": "query",
                "description": "The maximum number of items returned by request. Default '100'. Maximum '1000'.",
                "required": false,
                "schema": {
                    "type": "integer",
                    "default": 100,
                    "maximum": 1000
                }
            },
            "offset": {
                "name": "offset",
                "in": "query",
                "description": "The number of items omitted from the beginning of the list. Default '0'.",
                "required": false,
                "schema": {
                    "type": "integer",
                    "default": "0"
                }
            },
            "group": {
                "name": "group",
                "in": "query",
                "description": "Get contacts from specified group id",
                "required": false,
                "schema": {
                    "type": "integer"
                }
            },
            "phoneNumber": {
                "name": "phoneNumber",
                "in": "query",
                "description": "Search for contact using phone number",
                "required": false,
                "schema": {
                    "type": "string"
                }
            },
            "email": {
                "name": "email",
                "in": "query",
                "description": "Search for contact using email address",
                "required": false,
                "schema": {
                    "type": "string"
                }
            },
            "id": {
                "name": "id",
                "in": "query",
                "description": "Search for contact using contact id",
                "required": false,
                "schema": {
                    "type": "integer"
                }
            },
            "externalId": {
                "name": "externalId",
                "in": "query",
                "description": "The unique ID of the object you are looking for.",
                "required": false,
                "schema": {
                    "type": "string"
                }
            },
            "dateTo": {
                "name": "dateTo",
                "in": "query",
                "description": "End of the time range.",
                "required": true,
                "schema": {
                    "type": "string",
                    "example": "2025-01-03 00:00:00"
                }
            },
            "dateFrom": {
                "name": "dateFrom",
                "in": "query",
                "description": "Start of the time range.",
                "required": true,
                "schema": {
                    "type": "string",
                    "example": "2025-01-01 00:00:00"
                }
            },
            "campaignId": {
                "name": "campaignId",
                "in": "path",
                "description": "Id of existing campaign",
                "required": true,
                "schema": {
                    "type": "string"
                }
            },
            "campaignIdInQueryString": {
                "name": "campaignIdInQueryString",
                "in": "query",
                "description": "Id of existing campaign",
                "required": true,
                "schema": {
                    "type": "string"
                }
            },
            "inArchive": {
                "name": "inArchive",
                "in": "query",
                "description": "Filter contacts by archive status. true = only archived contacts (requires archiveDateFrom and archiveDateTo), false = only active contacts, not specified = all contacts",
                "required": false,
                "schema": {
                    "type": "boolean"
                }
            },
            "archiveDateTo": {
                "name": "archiveDateTo",
                "in": "query",
                "description": "End date for archived contacts search (YYYY-MM-DD hh:mm:ii format). Required when inArchive=true",
                "required": false,
                "schema": {
                    "type": "string",
                    "example": "2025-01-03 00:00:00"
                }
            },
            "archiveDateFrom": {
                "name": "archiveDateFrom",
                "in": "query",
                "description": "Start date for archived contacts search (YYYY-MM-DD hh:mm:ii format). Required when inArchive=true",
                "required": false,
                "schema": {
                    "type": "string",
                    "example": "2025-01-01 00:00:00"
                }
            },
            "isUnsubscribeSms": {
                "name": "isUnsubscribeSms",
                "in": "query",
                "description": "Search for unsubscribe contacts sms",
                "required": false,
                "schema": {
                    "type": "boolean"
                }
            },
            "isUnsubscribeEmail": {
                "name": "isUnsubscribeEmail",
                "in": "query",
                "description": "Search for unsubscribe contacts email",
                "required": false,
                "schema": {
                    "type": "boolean"
                }
            },
            "isUnsubscribePush": {
                "name": "isUnsubscribePush",
                "in": "query",
                "description": "Search for unsubscribe contacts push",
                "required": false,
                "schema": {
                    "type": "boolean"
                }
            }
        },
        "securitySchemes": {
            "APIKeyHeader": {
                "type": "apiKey",
                "name": "Authorization",
                "in": "header"
            },
            "APPKeyHeader": {
                "type": "apiKey",
                "name": "Application-Key",
                "in": "header"
            }
        }
    },
    "security": [
        {
            "APIKeyHeader": [],
            "APPKeyHeader": []
        }
    ],
    "tags": [
        {
            "name": "Emails",
            "description": "Email API mainly allows you to send emails to all over the world. You can also create or delete email templates, get clicks, opens and statuses on your emails and more.\n               There are two ways to send emails using our API:\n               - transactional email API that allows you to send emails to a single or an array of email addresses\n               - email campaigns that allows you to send emails to created group through API or account panel"
        },
        {
            "name": "EmailTemplates",
            "description": "Templates used for sending transactional emails."
        },
        {
            "name": "EmailBlacklists",
            "description": "Blacklist API basically allows you to manage email addresses and domains. You can add, update, delete or list receivers addresses or domains on your blacklist. Please be aware that this API can be used only in reference to transactional emails."
        },
        {
            "name": "Sms",
            "description": "Transactional SMS API allows you to send SMS to a single or an array of phone numbers."
        },
        {
            "name": "Viber",
            "description": "Viber API allows you to send Viber messages with images and buttons."
        },
        {
            "name": "Pushes",
            "description": "Push API allows you to send push notifications with images and buttons."
        },
        {
            "name": "Contacts",
            "description": "Contacts methods allows you to manage contacts that are identified by an unique externalId. Using externalId you can add, update, delete contacts, create groups and more."
        },
        {
            "name": "Segments",
            "description": "Segments of contacts allows you to create dynamic groups of contacts based on specific conditions."
        },
        {
            "name": "Groups",
            "description": "This API mainly allows you to add, update, delete and list groups."
        },
        {
            "name": "ContactGroupRelations",
            "description": "This API allows you to manage connections between groups and contacts."
        },
        {
            "name": "Campaigns",
            "description": "Email campaigns API allows you to send emails / smses to a specific group created through Create group method or through the panel."
        },
        {
            "name": "Ping",
            "description": "Ping"
        }
    ],
    "x-tagGroups": [
        {
            "name": "Transactional Email API",
            "tags": [
                "Emails",
                "Blacklist"
            ]
        },
        {
            "name": "Campaigns Management",
            "tags": [
                "Campaigns",
                "Automation"
            ]
        },
        {
            "name": "Transactional SMS API",
            "tags": [
                "Sms"
            ]
        },
        {
            "name": "Contacts Management",
            "tags": [
                "Contacts",
                "Segments",
                "Groups"
            ]
        },
        {
            "name": "Transactional Push API",
            "tags": [
                "Pushes"
            ]
        },
        {
            "name": "HealthCheck",
            "tags": [
                "Ping"
            ]
        },
        {
            "name": "MCP",
            "tags": [
                "MCP"
            ]
        }
    ]
}